error = FT_New_Size( t42face->ttf_face, &ttsize );
t42size->ttsize = ttsize;
FT_Activate_Size( ttsize );
My initial suggestion was:
error = FT_New_Size( t42face->ttf_face, &ttsize );
if(error)
return error;
t42size->ttsize = ttsize;
FT_Activate_Size( ttsize );
However, I observed that if ttsize is NULL, FT_Activate_Size function will throw an exception. Great
In this case, what do you think about this another change?
error = FT_New_Size( t42face->ttf_face, &ttsize );
if(!error)
t42size->ttsize = ttsize;
FT_Activate_Size( ttsize );