зеркало из https://github.com/mozilla/pjs.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:
Родитель
f5ab7753b7
Коммит
4d2a8e2210
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче