summaryrefslogtreecommitdiff
path: root/pango/pango-context.c
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2005-06-14 19:03:05 +0000
committerOwen Taylor <otaylor@src.gnome.org>2005-06-14 19:03:05 +0000
commit265c86ac01a154c35de7db3679052087c0b02dd3 (patch)
tree8f1524bc9c635d5b33f1843f670361956ef0f4d8 /pango/pango-context.c
parent8e7f0a9c9626c55568c4430c38be64ca0b59b118 (diff)
downloadpango-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)
Diffstat (limited to 'pango/pango-context.c')
-rw-r--r--pango/pango-context.c2
1 files changed, 2 insertions, 0 deletions
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);
}
/**