Bug 399556: don't pango_fc_font_map_shutdown in release builds. r=pavlov, aM9=beltzner

This commit is contained in:
karlt+@karlt.net 2007-10-30 15:35:21 -07:00
parent ce8e57d8c6
commit fcb9603fbc

View File

@ -216,10 +216,14 @@ gfxPangoFont::Shutdown()
{
gfxPangoFontCache::Shutdown();
// This just cleans up memory used by Pango's caches and may cause an
// assert and crash in cairo (Bug 399556), so only do this when we care
// about cleaning up memory on shutdown.
#if defined(DEBUG) || defined(NS_BUILD_REFCNT_LOGGING) || defined(NS_TRACE_MALLOC)
PangoFontMap *fontmap = pango_cairo_font_map_get_default ();
if (PANGO_IS_FC_FONT_MAP (fontmap))
pango_fc_font_map_shutdown (PANGO_FC_FONT_MAP (fontmap));
#endif
}
static PangoStyle