Bug 413050 ��� call cairo_debug_reset_static_data in system cairo on shutdown

r=pavlov
This commit is contained in:
karlt+%karlt.net 2008-02-12 06:47:40 +00:00
Родитель e3a28fd9a1
Коммит e27de832ff
3 изменённых файлов: 7 добавлений и 1 удалений

Просмотреть файл

@ -6987,6 +6987,8 @@ MOZ_TREE_CAIRO=1 )
AC_CHECK_HEADERS(stdint.h inttypes.h sys/int_types.h) AC_CHECK_HEADERS(stdint.h inttypes.h sys/int_types.h)
if test "$MOZ_TREE_CAIRO"; then if test "$MOZ_TREE_CAIRO"; then
AC_DEFINE(MOZ_TREE_CAIRO)
# For now we assume that we will have a uint64_t available through # For now we assume that we will have a uint64_t available through
# one of the above headers or mozstdint.h. # one of the above headers or mozstdint.h.
AC_DEFINE(HAVE_UINT64_T) AC_DEFINE(HAVE_UINT64_T)

Просмотреть файл

@ -191,7 +191,7 @@ gfxPlatform::~gfxPlatform()
// cairo_debug_* function unconditionally. // cairo_debug_* function unconditionally.
// //
// because cairo can assert and thus crash on shutdown, don't do this in release builds // because cairo can assert and thus crash on shutdown, don't do this in release builds
#if defined(DEBUG) || defined(NS_BUILD_REFCNT_LOGGING) || defined(NS_TRACE_MALLOC) #if MOZ_TREE_CAIRO && (defined(DEBUG) || defined(NS_BUILD_REFCNT_LOGGING) || defined(NS_TRACE_MALLOC))
cairo_debug_reset_static_data(); cairo_debug_reset_static_data();
#endif #endif

Просмотреть файл

@ -2366,6 +2366,10 @@ static void MOZ_gdk_display_close(GdkDisplay *display)
} }
else { else {
gdk_display_close(display); gdk_display_close(display);
#if GTK_CHECK_VERSION(2,8,0) && \
(defined(DEBUG) || defined(NS_BUILD_REFCNT_LOGGING) || defined(NS_TRACE_MALLOC))
cairo_debug_reset_static_data();
#endif
} }
} }
#endif // MOZ_WIDGET_GTK2 #endif // MOZ_WIDGET_GTK2