diff options
author | Behdad Esfahbod <behdad@gnome.org> | 2008-11-28 17:34:57 +0000 |
---|---|---|
committer | Behdad Esfahbod <behdad@src.gnome.org> | 2008-11-28 17:34:57 +0000 |
commit | 74cc07c44afd2879418389cce57a4129b60d61e6 (patch) | |
tree | 0183a27ad517826d064115cf76ba62a0b54033f4 /pango/pangocairo-win32font.c | |
parent | 0a189cf8c9d4489a30bc1a5f0f4ce62bcc8c9a5d (diff) | |
download | pango-74cc07c44afd2879418389cce57a4129b60d61e6.tar.gz |
Bug 562574 – Pangocariowin32 is leaking every cairo font it ever creates
2008-11-28 Behdad Esfahbod <behdad@gnome.org>
Bug 562574 – Pangocariowin32 is leaking every cairo font it ever
creates
* pango/pangocairo-atsuifont.c (pango_cairo_atsui_font_finalize):
* pango/pangocairo-win32font.c (pango_cairo_win32_font_finalize):
Finalize shared pangocairo font resources. Oops!
* pango/pangocairo-font.c (_pango_cairo_font_private_finalize):
Protect against multiple calls to finalize. This is practiced by the
pangocairo-fcfont when a font is shutdown and then finalized.
svn path=/trunk/; revision=2746
Diffstat (limited to 'pango/pangocairo-win32font.c')
-rw-r--r-- | pango/pangocairo-win32font.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/pango/pangocairo-win32font.c b/pango/pangocairo-win32font.c index 4f0ec3d7..875f9526 100644 --- a/pango/pangocairo-win32font.c +++ b/pango/pangocairo-win32font.c @@ -164,6 +164,10 @@ pango_cairo_win32_font_create_metrics_for_context (PangoCairoFont *font, static void pango_cairo_win32_font_finalize (GObject *object) { + PangoCairoWin32Font *cwfont = (PangoCairoWin32Font *) object; + + _pango_cairo_font_private_finalize (&cwfont->cf_priv); + G_OBJECT_CLASS (pango_cairo_win32_font_parent_class)->finalize (object); } @@ -225,7 +229,7 @@ pango_cairo_win32_font_class_init (PangoCairoWin32FontClass *class) } static void -pango_cairo_win32_font_init (PangoCairoWin32Font *cwfont) +pango_cairo_win32_font_init (PangoCairoWin32Font *cwfont G_GNUC_UNUSED) { } |