From 5773ab35a3e889f08febe42a1a2e933421fe8a67 Mon Sep 17 00:00:00 2001 From: "pnunn%netscape.com" Date: Thu, 13 Jan 2000 23:01:11 +0000 Subject: [PATCH] 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 --- mozilla/gfx/src/nsImageNetContextAsync.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mozilla/gfx/src/nsImageNetContextAsync.cpp b/mozilla/gfx/src/nsImageNetContextAsync.cpp index e067d630380..187ddba998a 100644 --- a/mozilla/gfx/src/nsImageNetContextAsync.cpp +++ b/mozilla/gfx/src/nsImageNetContextAsync.cpp @@ -489,6 +489,11 @@ ImageNetContextImpl::Clone() ilINetContext *cx; nsCOMPtr 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;