summaryrefslogtreecommitdiff
path: root/pango/pangoxft-font.c
diff options
context:
space:
mode:
Diffstat (limited to 'pango/pangoxft-font.c')
-rw-r--r--pango/pangoxft-font.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/pango/pangoxft-font.c b/pango/pangoxft-font.c
index 96edd72c..5c7a656e 100644
--- a/pango/pangoxft-font.c
+++ b/pango/pangoxft-font.c
@@ -312,6 +312,9 @@ static void
pango_xft_font_finalize (GObject *object)
{
PangoXftFont *xfont = (PangoXftFont *)object;
+ Display *display;
+
+ _pango_xft_font_map_get_info (xfont->fontmap, &display, NULL);
_pango_xft_font_map_remove (xfont->fontmap, xfont);
@@ -321,6 +324,10 @@ pango_xft_font_finalize (GObject *object)
if (xfont->ot_info)
g_object_unref (xfont->ot_info);
+ pango_font_description_free (xfont->description);
+
+ XftFontClose (display, xfont->xft_font);
+
G_OBJECT_CLASS (parent_class)->finalize (object);
}