[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ft] Question about FT_Get_Sfnt_Name
From: |
Werner LEMBERG |
Subject: |
Re: [ft] Question about FT_Get_Sfnt_Name |
Date: |
Wed, 11 Jan 2017 16:43:03 +0100 (CET) |
>> I have a question about FT_Get_Sfnt_Name. The official
>> documentation about this
>> function(https://www.freetype.org/freetype2/docs/reference/ft2-sfnt_names.html#FT_Get_Sfnt_Name)
>> gives the following information:
>>
>> The ‘string’ array returned in the ‘aname’ structure is not
>> null-terminated. The application should deallocate it if it is no
>> longer in use.
This information is incorrect.
>> However, every time I try to free the string, it always causes a
>> double-free error.
>
> I can confirm I get the same kind of error in python_freetype
> <https://github.com/ldo/python_freetype>. My conclusion is: don’t
> free the string.
Yep. Documentation fixed in git! Thanks for the report.
Werner