[pango] [layout] clear state->log_widths after freeing
- From: Behdad Esfahbod <behdad src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [pango] [layout] clear state->log_widths after freeing
- Date: Wed, 12 Aug 2009 20:54:48 +0000 (UTC)
commit 68b88d292b4be0bffe321c3da84891c4a7b3ba6f
Author: Behdad Esfahbod <behdad behdad org>
Date: Wed Aug 12 16:51:46 2009 -0400
[layout] clear state->log_widths after freeing
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 52ae985..2598940 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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]