From 8e12219e85a972c3b4fb0a864e6ab6e39999b9c3 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Wed, 24 Oct 2007 07:18:39 +0000 Subject: Fix another Oops of mine from recent commits. 2007-10-24 Behdad Esfahbod * pango/glyphstring.c (pango_glyph_string_copy), (pango_glyph_string_free): Fix another Oops of mine from recent commits. svn path=/trunk/; revision=2466 --- ChangeLog | 6 ++++++ pango/glyphstring.c | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 4585ec5a..8d44dec0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2007-10-24 Behdad Esfahbod + + * pango/glyphstring.c (pango_glyph_string_copy), + (pango_glyph_string_free): + Fix another Oops of mine from recent commits. + 2007-10-24 Behdad Esfahbod Bug 472924 – Mark some classes abstract diff --git a/pango/glyphstring.c b/pango/glyphstring.c index 6aeba2b7..307c9faf 100644 --- a/pango/glyphstring.c +++ b/pango/glyphstring.c @@ -105,7 +105,7 @@ pango_glyph_string_copy (PangoGlyphString *string) { PangoGlyphString *new_string; - if (new_string == NULL) + if (string == NULL) return NULL; new_string = g_slice_new (PangoGlyphString); @@ -131,6 +131,7 @@ pango_glyph_string_free (PangoGlyphString *string) { if (string == NULL) return; + g_free (string->glyphs); g_free (string->log_clusters); g_slice_free (PangoGlyphString, string); -- cgit v1.2.1