mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-04 13:07:52 +00:00
b=417115, animated image causes recursion during shutdown ; r=stuart
This commit is contained in:
parent
2f94d8d7c7
commit
15e811c57a
@ -110,11 +110,16 @@ private:
|
||||
|
||||
void ReleaseCallback()
|
||||
{
|
||||
if (mCallbackType == CALLBACK_TYPE_INTERFACE)
|
||||
// if we're the last owner of the callback object, make
|
||||
// sure that we don't recurse into ReleaseCallback in case
|
||||
// the callback's destructor calls Cancel() or similar.
|
||||
PRUint8 cbType = mCallbackType;
|
||||
mCallbackType = CALLBACK_TYPE_UNKNOWN;
|
||||
|
||||
if (cbType == CALLBACK_TYPE_INTERFACE)
|
||||
NS_RELEASE(mCallback.i);
|
||||
else if (mCallbackType == CALLBACK_TYPE_OBSERVER)
|
||||
else if (cbType == CALLBACK_TYPE_OBSERVER)
|
||||
NS_RELEASE(mCallback.o);
|
||||
mCallbackType = CALLBACK_TYPE_UNKNOWN;
|
||||
}
|
||||
|
||||
nsCOMPtr<nsIThread> mCallingThread;
|
||||
|
Loading…
x
Reference in New Issue
Block a user