Bug 605009 - Linux debug build with --disable-pango crashes during shutdown; r=karlt

This commit is contained in:
Jonathan Kew 2011-03-23 23:02:14 -04:00
parent 340316d75a
commit 7a7c138786

View File

@ -146,9 +146,16 @@ gfxPlatformGtk::~gfxPlatformGtk()
delete gCodepointsWithNoFonts;
gCodepointsWithNoFonts = NULL;
#ifdef NS_FREE_PERMANENT_DATA
// do cairo cleanup *before* closing down the FTLibrary,
// otherwise we'll crash when the gfxPlatform destructor
// calls it (bug 605009)
cairo_debug_reset_static_data();
FT_Done_FreeType(gPlatformFTLibrary);
gPlatformFTLibrary = NULL;
#endif
#endif
#if 0
// It would be nice to do this (although it might need to be after