mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-14 18:51:28 +00:00
Bug 399556: don't pango_fc_font_map_shutdown in release builds. r=pavlov, aM9=beltzner
This commit is contained in:
parent
aeb9c559c1
commit
d4d0a05a91
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user