summaryrefslogtreecommitdiff
path: root/pango/pangoft2-fontmap.c
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@gnome.org>2009-01-02 07:19:03 +0000
committerBehdad Esfahbod <behdad@src.gnome.org>2009-01-02 07:19:03 +0000
commit2317196c109647541c6339eac81db542bc0ca425 (patch)
treedca0834734a783952b875fc3b0513fbf6b070901 /pango/pangoft2-fontmap.c
parent50d61fa3b2f74758be0ee234861c4ad20f2d2294 (diff)
downloadpango-2317196c109647541c6339eac81db542bc0ca425.tar.gz
Finalize FreeType library after finalizing the FC fontmap. Fixes segfault
2009-01-02 Behdad Esfahbod <behdad@gnome.org> * pango/pangocairo-fcfontmap.c (pango_cairo_fc_font_map_finalize): * pango/pangoft2-fontmap.c (pango_ft2_font_map_finalize): Finalize FreeType library after finalizing the FC fontmap. Fixes segfault in the PangoFT2FontMap's finalize. svn path=/trunk/; revision=2775
Diffstat (limited to 'pango/pangoft2-fontmap.c')
-rw-r--r--pango/pangoft2-fontmap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pango/pangoft2-fontmap.c b/pango/pangoft2-fontmap.c
index 2dc13c37..3da0f165 100644
--- a/pango/pangoft2-fontmap.c
+++ b/pango/pangoft2-fontmap.c
@@ -102,9 +102,9 @@ pango_ft2_font_map_finalize (GObject *object)
if (ft2fontmap->substitute_destroy)
ft2fontmap->substitute_destroy (ft2fontmap->substitute_data);
- FT_Done_FreeType (ft2fontmap->library);
-
G_OBJECT_CLASS (pango_ft2_font_map_parent_class)->finalize (object);
+
+ FT_Done_FreeType (ft2fontmap->library);
}
/**