From fe16385f532ae13acd46c03c8175ba67534fbfc0 Mon Sep 17 00:00:00 2001 From: Owen Taylor Date: Fri, 13 Feb 2004 16:11:40 +0000 Subject: Memory leak fixes from Masatake YAMATO, #130652 Fri Feb 13 10:54:18 2004 Owen Taylor 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. --- ChangeLog | 10 ++++++++++ ChangeLog.pre-1-10 | 10 ++++++++++ ChangeLog.pre-1-4 | 10 ++++++++++ ChangeLog.pre-1-6 | 10 ++++++++++ ChangeLog.pre-1-8 | 10 ++++++++++ pango/opentype/ftxgdef.c | 4 ++++ 6 files changed, 54 insertions(+) diff --git a/ChangeLog b/ChangeLog index 419f49ec..d85c688a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +Fri Feb 13 10:54:18 2004 Owen Taylor + + 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. + Fri Feb 13 10:19:16 2004 Owen Taylor * configure.in: Skip the xslt and stylesheet checks diff --git a/ChangeLog.pre-1-10 b/ChangeLog.pre-1-10 index 419f49ec..d85c688a 100644 --- a/ChangeLog.pre-1-10 +++ b/ChangeLog.pre-1-10 @@ -1,3 +1,13 @@ +Fri Feb 13 10:54:18 2004 Owen Taylor + + 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. + Fri Feb 13 10:19:16 2004 Owen Taylor * configure.in: Skip the xslt and stylesheet checks diff --git a/ChangeLog.pre-1-4 b/ChangeLog.pre-1-4 index 419f49ec..d85c688a 100644 --- a/ChangeLog.pre-1-4 +++ b/ChangeLog.pre-1-4 @@ -1,3 +1,13 @@ +Fri Feb 13 10:54:18 2004 Owen Taylor + + 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. + Fri Feb 13 10:19:16 2004 Owen Taylor * configure.in: Skip the xslt and stylesheet checks diff --git a/ChangeLog.pre-1-6 b/ChangeLog.pre-1-6 index 419f49ec..d85c688a 100644 --- a/ChangeLog.pre-1-6 +++ b/ChangeLog.pre-1-6 @@ -1,3 +1,13 @@ +Fri Feb 13 10:54:18 2004 Owen Taylor + + 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. + Fri Feb 13 10:19:16 2004 Owen Taylor * configure.in: Skip the xslt and stylesheet checks diff --git a/ChangeLog.pre-1-8 b/ChangeLog.pre-1-8 index 419f49ec..d85c688a 100644 --- a/ChangeLog.pre-1-8 +++ b/ChangeLog.pre-1-8 @@ -1,3 +1,13 @@ +Fri Feb 13 10:54:18 2004 Owen Taylor + + 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. + Fri Feb 13 10:19:16 2004 Owen Taylor * configure.in: Skip the xslt and stylesheet checks 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: -- cgit v1.2.1