Bug 386211. Turn 'fonts still alive' assertion into a warning. r=vlad

This commit is contained in:
roc+%cs.cmu.edu 2007-07-04 03:24:04 +00:00
Родитель cca3f7145b
Коммит 6169c9b8b1
1 изменённых файлов: 3 добавлений и 4 удалений

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

@ -155,10 +155,9 @@ public:
~gfxFontCache() {
// Expire everything that has a zero refcount, so we don't leak them.
AgeAllGenerations();
// All fonts should be gone. Otherwise we will crash releasing them
// later, since this cache no longer exists
NS_ASSERTION(mFonts.Count() == 0,
"Fonts still alive while shutting down gfxFontCache");
// All fonts should be gone.
NS_WARN_IF_FALSE(mFonts.Count() == 0,
"Fonts still alive while shutting down gfxFontCache");
// Note that we have to delete everything through the expiration
// tracker, since there might be fonts not in the hashtable but in
// the tracker.