diff options
author | Owen Taylor <otaylor@redhat.com> | 2001-09-04 14:55:14 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 2001-09-04 14:55:14 +0000 |
commit | af319ff03e4aedf7bf9466d4ddd6bed52f7cda4d (patch) | |
tree | 56ddfeb9cc65fe1dfebd590654a047db9a4dbde7 /pango/pangoxft-font.c | |
parent | ef85fe81cdb895ab5ff8b6c87267103e00003fe9 (diff) | |
download | pango-af319ff03e4aedf7bf9466d4ddd6bed52f7cda4d.tar.gz |
Version 0.18PANGO_0_18
Mon Sep 3 19:37:02 2001 Owen Taylor <otaylor@redhat.com>
* configure.in: Version 0.18
* NEWS: Updated.
* pango/pangoxft-font.c (pango_xft_font_finalize): Actually
free the XftFont (and description). Lack of such pointed out
by David Turner.
Diffstat (limited to 'pango/pangoxft-font.c')
-rw-r--r-- | pango/pangoxft-font.c | 7 |
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); } |