summaryrefslogtreecommitdiff
path: root/pango/pangocairo-fcfont.c
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@gnome.org>2008-11-28 17:34:57 +0000
committerBehdad Esfahbod <behdad@src.gnome.org>2008-11-28 17:34:57 +0000
commit74cc07c44afd2879418389cce57a4129b60d61e6 (patch)
tree0183a27ad517826d064115cf76ba62a0b54033f4 /pango/pangocairo-fcfont.c
parent0a189cf8c9d4489a30bc1a5f0f4ce62bcc8c9a5d (diff)
downloadpango-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-fcfont.c')
-rw-r--r--pango/pangocairo-fcfont.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pango/pangocairo-fcfont.c b/pango/pangocairo-fcfont.c
index fb519b79..7cab98f3 100644
--- a/pango/pangocairo-fcfont.c
+++ b/pango/pangocairo-fcfont.c
@@ -88,7 +88,7 @@ G_DEFINE_TYPE_WITH_CODE (PangoCairoFcFont, pango_cairo_fc_font, PANGO_TYPE_FC_FO
static void
pango_cairo_fc_font_finalize (GObject *object)
{
- PangoCairoFcFont *cffont = (PangoCairoFcFont *) (object);
+ PangoCairoFcFont *cffont = (PangoCairoFcFont *) object;
_pango_cairo_font_private_finalize (&cffont->cf_priv);
@@ -162,7 +162,7 @@ pango_cairo_fc_font_class_init (PangoCairoFcFontClass *class)
}
static void
-pango_cairo_fc_font_init (PangoCairoFcFont *cffont)
+pango_cairo_fc_font_init (PangoCairoFcFont *cffont G_GNUC_UNUSED)
{
}