Bug 1161722 - If we're shutting down, don't warn about untracked unlocked surfaces. r=dholbert

This commit is contained in:
Seth Fowler 2015-05-05 15:35:36 -07:00
parent eb02069aa5
commit a0e714f67c

View File

@ -32,6 +32,7 @@
#include "nsSize.h"
#include "nsTArray.h"
#include "prsystem.h"
#include "ShutdownTracker.h"
#include "SVGImageContext.h"
using std::max;
@ -526,7 +527,8 @@ public:
} else {
// Our call to AddObject must have failed in StartTracking; most likely
// we're in XPCOM shutdown right now.
NS_WARNING("Not expiration-tracking an unlocked surface!");
NS_WARN_IF_FALSE(ShutdownTracker::ShutdownHasStarted(),
"Not expiration-tracking an unlocked surface!");
}
DebugOnly<bool> foundInCosts = mCosts.RemoveElementSorted(costEntry);