зеркало из https://github.com/mozilla/gecko-dev.git
bug#12722: timer interacting with image groups. pnunn. rev: neeti@netscape.com
This commit is contained in:
Родитель
dd87e0b303
Коммит
3fdce350ca
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче