summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}