summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2009-08-12 16:51:46 -0400
committerBehdad Esfahbod <behdad@behdad.org>2009-08-12 16:51:46 -0400
commit68b88d292b4be0bffe321c3da84891c4a7b3ba6f (patch)
tree36c8cd997f4815bc8bd7dd88c484300cdd9e916f
parent1e53d4d5904445c740a374ea8492935f95bf1654 (diff)
downloadpango-68b88d292b4be0bffe321c3da84891c4a7b3ba6f.tar.gz
[layout] clear state->log_widths after freeing
-rw-r--r--pango/pango-layout.c2
1 files changed, 2 insertions, 0 deletions
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;
}