# HG changeset patch # User L. David Baron <dbaron@dbaron.org> # Date 1393836878 28800 # Node ID c66cd5bf1aadd254aefa2078ef3d3f319e006a53 # Parent 2275e85c9ad070c25bba736fa4ea3ed3afb2bf5e Bug 978608: Shut down pango's fontmap cleanly and shut down fontconfig, #if CLEANUP_MEMORY. r=karlt This bumps the minimum required pango version to 1.22, released 29 Sep 2008. diff --git a/configure.in b/configure.in --- a/configure.in +++ b/configure.in @@ -55,17 +55,17 @@ MOZPNG=10609 NSPR_VERSION=4 NSS_VERSION=3 dnl Set the minimum version of toolkit libs used by mozilla dnl ======================================================== GLIB_VERSION=1.2.0 PERL_VERSION=5.006 CAIRO_VERSION=1.10 -PANGO_VERSION=1.14.0 +PANGO_VERSION=1.22.0 GTK2_VERSION=2.10.0 GTK3_VERSION=3.0.0 WINDRES_VERSION=2.14.90 W32API_VERSION=3.14 GNOMEVFS_VERSION=2.0 GNOMEUI_VERSION=2.2.0 GCONF_VERSION=1.2.1 GIO_VERSION=2.20 diff --git a/gfx/thebes/gfxPlatform.cpp b/gfx/thebes/gfxPlatform.cpp --- a/gfx/thebes/gfxPlatform.cpp +++ b/gfx/thebes/gfxPlatform.cpp @@ -529,24 +529,16 @@ gfxPlatform::~gfxPlatform() // Cairo objects e.g. through SkCairoFTTypeface SkGraphics::Term(); #endif #if MOZ_TREE_CAIRO cairo_debug_reset_static_data(); #endif #endif - -#if 0 - // It would be nice to do this (although it might need to be after - // the cairo shutdown that happens in ~gfxPlatform). It even looks - // idempotent. But it has fatal assertions that fire if stuff is - // leaked, and we hit them. - FcFini(); -#endif } bool gfxPlatform::PreferMemoryOverShmem() const { MOZ_ASSERT(!CompositorParent::IsInCompositorThread()); return mLayersPreferMemoryOverShmem; } diff --git a/gfx/thebes/gfxPlatformGtk.cpp b/gfx/thebes/gfxPlatformGtk.cpp --- a/gfx/thebes/gfxPlatformGtk.cpp +++ b/gfx/thebes/gfxPlatformGtk.cpp @@ -70,24 +70,16 @@ gfxPlatformGtk::gfxPlatformGtk() } gfxPlatformGtk::~gfxPlatformGtk() { gfxFontconfigUtils::Shutdown(); sFontconfigUtils = nullptr; gfxPangoFontGroup::Shutdown(); - -#if 0 - // It would be nice to do this (although it might need to be after - // the cairo shutdown that happens in ~gfxPlatform). It even looks - // idempotent. But it has fatal assertions that fire if stuff is - // leaked, and we hit them. - FcFini(); -#endif } already_AddRefed<gfxASurface> gfxPlatformGtk::CreateOffscreenSurface(const IntSize& size, gfxContentType contentType) { nsRefPtr<gfxASurface> newSurface; bool needsClear = true;