> I think that there is memory leak in CFF font handling (FreeType
> 2.2.1).

I can confirm that.

> In cff fonts get_glyph_name callback points to:
> cff_sid_to_glyph_name from cffcmap.c
> which calls:
> cff_index_get_sid_string which allways create new string in memory.
>
> [...]
>
> I don't see any easy fix, so please find out one yourself :-)

Indeed, it is tricky.  Reason is that some of the SIDs have to be
allocated, but not all of them.  David?

> (I will fix it temporary to create copy even in t1_get_glyph_name
> and free it in ps_unicodes_init always.

Can you provide a patch?  We could add it, marked with a `FIXME'.


    Werner


_______________________________________________
Freetype-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/freetype-devel

Reply via email to