mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 03:15:11 +00:00
Prevent notifications during cancelation of notifications by clearing listener before removing proxy. b=82926 r=pavlov sr=waterson a=asa t=booyah!
This commit is contained in:
parent
891904ac42
commit
67a224ce0c
@ -154,6 +154,7 @@ NS_IMETHODIMP imgRequestProxy::Cancel(nsresult status)
|
||||
LOG_SCOPE(gImgLog, "imgRequestProxy::Cancel");
|
||||
|
||||
mCanceled = PR_TRUE;
|
||||
mListener = nsnull;
|
||||
|
||||
{
|
||||
nsAutoLock lock(mLock);
|
||||
@ -162,8 +163,6 @@ NS_IMETHODIMP imgRequestProxy::Cancel(nsresult status)
|
||||
|
||||
mOwner = nsnull;
|
||||
|
||||
mListener = nsnull;
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user