bug 399556. only clean up cairo in debug/test builds. r=vlad a=beltzner

This commit is contained in:
pavlov@pavlov.net 2007-10-25 18:21:50 -07:00
Родитель 1e2a0ce6e2
Коммит fdbd8f00ff
1 изменённых файлов: 4 добавлений и 0 удалений

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

@ -155,7 +155,11 @@ gfxPlatform::~gfxPlatform()
// but we're generally in the habit of trying to shut down as
// cleanly as possible even in production code, so call this
// cairo_debug_* function unconditionally.
//
// 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)
cairo_debug_reset_static_data();
#endif
#if 0
// It would be nice to do this (although it might need to be after