diff options
author | Owen Taylor <otaylor@redhat.com> | 2005-06-14 19:03:05 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 2005-06-14 19:03:05 +0000 |
commit | 265c86ac01a154c35de7db3679052087c0b02dd3 (patch) | |
tree | 8f1524bc9c635d5b33f1843f670361956ef0f4d8 | |
parent | 8e7f0a9c9626c55568c4430c38be64ca0b59b118 (diff) | |
download | pango-265c86ac01a154c35de7db3679052087c0b02dd3.tar.gz |
Fix potential leak of state->base_font. (#168930, Ben Maurer, Aivars
2005-06-14 Owen Taylor <otaylor@redhat.com>
* pango/pango-context.c (itemize_state_finish): Fix
potential leak of state->base_font. (#168930, Ben Maurer,
Aivars Kalvans)
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | ChangeLog.pre-1-10 | 6 | ||||
-rw-r--r-- | pango/pango-context.c | 2 |
3 files changed, 14 insertions, 0 deletions
@@ -1,3 +1,9 @@ +2005-06-14 Owen Taylor <otaylor@redhat.com> + + * pango/pango-context.c (itemize_state_finish): Fix + potential leak of state->base_font. (#168930, Ben Maurer, + Aivars Kalvans) + 2005-06-10 Owen Taylor <otaylor@redhat.com> * pango/pangocairo-fcfont.c: Add a (hopefully temporary) cache diff --git a/ChangeLog.pre-1-10 b/ChangeLog.pre-1-10 index 85e999b7..d91dac6f 100644 --- a/ChangeLog.pre-1-10 +++ b/ChangeLog.pre-1-10 @@ -1,3 +1,9 @@ +2005-06-14 Owen Taylor <otaylor@redhat.com> + + * pango/pango-context.c (itemize_state_finish): Fix + potential leak of state->base_font. (#168930, Ben Maurer, + Aivars Kalvans) + 2005-06-10 Owen Taylor <otaylor@redhat.com> * pango/pangocairo-fcfont.c: Add a (hopefully temporary) cache diff --git a/pango/pango-context.c b/pango/pango-context.c index ab7bbdaa..56b58fb1 100644 --- a/pango/pango-context.c +++ b/pango/pango-context.c @@ -1140,6 +1140,8 @@ itemize_state_finish (ItemizeState *state) itemize_state_reset_shape_engines (state); if (state->current_fonts) g_object_unref (state->current_fonts); + if (state->base_font) + g_object_unref (state->base_font); } /** |