From 68b88d292b4be0bffe321c3da84891c4a7b3ba6f Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Wed, 12 Aug 2009 16:51:46 -0400 Subject: [layout] clear state->log_widths after freeing --- pango/pango-layout.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pango/pango-layout.c b/pango/pango-layout.c index 52ae9851..2598940d 100644 --- a/pango/pango-layout.c +++ b/pango/pango-layout.c @@ -3177,6 +3177,7 @@ insert_run (PangoLayoutLine *line, pango_glyph_string_free (state->glyphs); state->glyphs = NULL; g_free (state->log_widths); + state->log_widths = NULL; } line->runs = g_slist_prepend (line->runs, run); @@ -3382,6 +3383,7 @@ process_item (PangoLayout *layout, pango_glyph_string_free (state->glyphs); state->glyphs = NULL; g_free (state->log_widths); + state->log_widths = NULL; return BREAK_NONE_FIT; } -- cgit v1.2.1