mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 399556: don't pango_fc_font_map_shutdown in release builds. r=pavlov, aM9=beltzner
This commit is contained in:
parent
ce8e57d8c6
commit
fcb9603fbc
@ -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