diff options
author | Behdad Esfahbod <behdad@behdad.org> | 2009-08-12 16:51:46 -0400 |
---|---|---|
committer | Behdad Esfahbod <behdad@behdad.org> | 2009-08-12 16:51:46 -0400 |
commit | 68b88d292b4be0bffe321c3da84891c4a7b3ba6f (patch) | |
tree | 36c8cd997f4815bc8bd7dd88c484300cdd9e916f | |
parent | 1e53d4d5904445c740a374ea8492935f95bf1654 (diff) | |
download | pango-68b88d292b4be0bffe321c3da84891c4a7b3ba6f.tar.gz |
[layout] clear state->log_widths after freeing
-rw-r--r-- | pango/pango-layout.c | 2 |
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; } |