bug#12722: timer interacting with image groups. pnunn. rev: neeti@netscape.com

git-svn-id: svn://10.0.0.236/trunk@57699 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
pnunn%netscape.com
2000-01-13 23:01:11 +00:00
parent 6835960cdb
commit 5773ab35a3

View File

@@ -489,6 +489,11 @@ ImageNetContextImpl::Clone()
ilINetContext *cx;
nsCOMPtr<nsILoadGroup> group = do_QueryReferent(mLoadGroup);
//mReconnectArg is ImageGroup. If GetURL is triggered
//by timer for animation, ImageGroup may have been unloaded
//before timer kicks off.
mReconnectCallback=nsnull; mReconnectArg=nsnull;
if (NS_NewImageNetContext(&cx, group, mReconnectCallback, mReconnectArg) == NS_OK)
{
return cx;