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;