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:
attinasi%netscape.com 2001-06-08 05:44:38 +00:00
parent 891904ac42
commit 67a224ce0c

View File

@ -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;
}