>> The docs say return value of FT_Get_MM_Var() should be freed by >> calling "free()". But given this is allocated using FT_ALLOC(), >> shouldn't caller use FT_FREE()? > > Neither FT_ALLOC nor FT_FREE is in API. The documentation is crystal > clear on this subject. > https://www.freetype.org/freetype2/docs/reference/ft2-multiple_masters.html#FT_Get_MM_Var
While this is correct, Behdad has a point. I've just added function `FT_Done_MM_Var' to free the memory allocated by `FT_Get_MM_Var'. Werner _______________________________________________ Freetype-devel mailing list Freetype-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/freetype-devel