freetype-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ft-devel] How to free FT_MM_Var?


From: Werner LEMBERG
Subject: Re: [ft-devel] How to free FT_MM_Var?
Date: Sat, 06 Jan 2018 08:44:44 +0100 (CET)

>> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]