mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1085662 - Don't crash if there is no deadlock detector when destroying BlockingResourceBase r=froydnj
This commit is contained in:
parent
8d41065e55
commit
33ff0dac10
@ -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