Memory leak fixes from Masatake YAMATO, #130652

Fri Feb 13 10:54:18 2004  Owen Taylor  <otaylor@redhat.com>

        Memory leak fixes from Masatake YAMATO, #130652

        * pango/opentype/ftxgdef.c (TT_Done_GDEF_Table):
        Free the gdef table as well as the contained data.

        * pango/opentype/ftxgdef.c (TT_GDEF_Build_ClassDefinition):
        Set gcd->loaded, so that the contents get freed later.
This commit is contained in:
Owen Taylor 2004-02-13 16:11:40 +00:00 committed by Owen Taylor
parent 926b8f3229
commit b9b3c131c2
1 changed files with 4 additions and 0 deletions

View File

@ -298,6 +298,8 @@
Free_NewGlyphClasses( gdef, memory );
FREE( gdef );
return TT_Err_Ok;
}
@ -1034,6 +1036,8 @@
gdef->MarkAttachClassDef_offset = 0L;
gdef->MarkAttachClassDef.loaded = FALSE;
gcd->loaded = TRUE;
return TT_Err_Ok;
Fail1: