summaryrefslogtreecommitdiff
path: root/pango
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2004-02-13 16:11:40 +0000
committerOwen Taylor <otaylor@src.gnome.org>2004-02-13 16:11:40 +0000
commitfe16385f532ae13acd46c03c8175ba67534fbfc0 (patch)
tree00521ec4838fb5358766ec3ea2440fc44257583f /pango
parenta036dc6bbf67584d8e7ae8ac0a72b7c922977a7a (diff)
downloadpango-fe16385f532ae13acd46c03c8175ba67534fbfc0.tar.gz
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.
Diffstat (limited to 'pango')
-rw-r--r--pango/opentype/ftxgdef.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/pango/opentype/ftxgdef.c b/pango/opentype/ftxgdef.c
index d1cbda1e..36146970 100644
--- a/pango/opentype/ftxgdef.c
+++ b/pango/opentype/ftxgdef.c
@@ -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: