mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
b=417115, animated image causes recursion during shutdown ; r=stuart
This commit is contained in:
parent
24545f80da
commit
67731f33de
@ -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…
Reference in New Issue
Block a user