mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 20:05:49 +00:00
Bug 1085662 - Don't crash if there is no deadlock detector when destroying BlockingResourceBase r=froydnj
This commit is contained in:
parent
7c556dd594
commit
5bd2ac8ce1
@ -229,7 +229,9 @@ BlockingResourceBase::~BlockingResourceBase()
|
||||
// base class, or its underlying primitive, will check for such
|
||||
// stupid mistakes.
|
||||
mChainPrev = 0; // racy only for stupidly buggy client code
|
||||
sDeadlockDetector->Remove(this);
|
||||
if (sDeadlockDetector) {
|
||||
sDeadlockDetector->Remove(this);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user