From 265c86ac01a154c35de7db3679052087c0b02dd3 Mon Sep 17 00:00:00 2001 From: Owen Taylor Date: Tue, 14 Jun 2005 19:03:05 +0000 Subject: Fix potential leak of state->base_font. (#168930, Ben Maurer, Aivars 2005-06-14 Owen Taylor * pango/pango-context.c (itemize_state_finish): Fix potential leak of state->base_font. (#168930, Ben Maurer, Aivars Kalvans) --- ChangeLog | 6 ++++++ ChangeLog.pre-1-10 | 6 ++++++ pango/pango-context.c | 2 ++ 3 files changed, 14 insertions(+) diff --git a/ChangeLog b/ChangeLog index 85e999b7..d91dac6f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2005-06-14 Owen Taylor + + * pango/pango-context.c (itemize_state_finish): Fix + potential leak of state->base_font. (#168930, Ben Maurer, + Aivars Kalvans) + 2005-06-10 Owen Taylor * 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 + + * pango/pango-context.c (itemize_state_finish): Fix + potential leak of state->base_font. (#168930, Ben Maurer, + Aivars Kalvans) + 2005-06-10 Owen Taylor * 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); } /** -- cgit v1.2.1