mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-01 17:23:59 +00:00
Bug 1161722 - If we're shutting down, don't warn about untracked unlocked surfaces. r=dholbert
This commit is contained in:
parent
eb02069aa5
commit
a0e714f67c
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user