зеркало из https://github.com/mozilla/gecko-dev.git
Release the stream observer when stopping a document load. This will break the circular reference between the webshell and the docloader...
This commit is contained in:
Родитель
cc5ad37044
Коммит
a63c71ca52
|
@ -740,6 +740,12 @@ nsDocLoaderImpl::Stop(void)
|
|||
mForegroundURLs = 0;
|
||||
mTotalURLs = 0;
|
||||
|
||||
/*
|
||||
* Release the Stream Observer...
|
||||
* It will be set on the next LoadDocument(...)
|
||||
*/
|
||||
NS_IF_RELEASE(mStreamObserver);
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
|
|
@ -740,6 +740,12 @@ nsDocLoaderImpl::Stop(void)
|
|||
mForegroundURLs = 0;
|
||||
mTotalURLs = 0;
|
||||
|
||||
/*
|
||||
* Release the Stream Observer...
|
||||
* It will be set on the next LoadDocument(...)
|
||||
*/
|
||||
NS_IF_RELEASE(mStreamObserver);
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче