Commit aee70152 authored by Dom Lachowicz's avatar Dom Lachowicz

Don't leak PangoFt2 fonts (bug 344235). This is a work-around for Pango

	* rsvg-text.c: Don't leak PangoFt2 fonts (bug 344235). This is a
	work-around for Pango bug 143542.
parent 2b0af580
2006-07-22 Dom Lachowicz <cinamod@hotmail.com>
* configure.in: Bug 348329 make gnome-print dependency optional
* rsvg-text.c: Don't leak PangoFt2 fonts (bug 344235). This is a
work-around for Pango bug 143542.
2006-07-22 Dom Lachowicz <cinamod@hotmail.com>
......
......@@ -492,6 +492,18 @@ rsvg_text_get_pango_context (RsvgDrawingCtx *ctx)
context = pango_ft2_font_map_create_context (fontmap);
g_object_unref (fontmap);
/* Workaround for bug #143542 (PangoFT2Fontmap leak),
* see also bug #344235 (Text layer rendering leaks font file descriptor):
*
* Calling pango_ft2_font_map_substitute_changed() causes the
* font_map cache to be flushed, thereby removing the circular
* reference that causes the leak.
*/
g_object_weak_ref (G_OBJECT(context),
(GWeakNotify) pango_ft2_font_map_substitute_changed,
fontmap);
return context;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment