mirror of
https://github.com/classilla/tenfourfox.git
synced 2024-09-10 11:54:40 +00:00
#596: chemspill M1626728 1620818
This commit is contained in:
parent
444a1c1fc2
commit
98aa66e3aa
@ -856,6 +856,12 @@ nsDocShell::~nsDocShell()
|
|||||||
shPrivate->SetRootDocShell(nullptr);
|
shPrivate->SetRootDocShell(nullptr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (mContentViewer) {
|
||||||
|
mContentViewer->Close(nullptr);
|
||||||
|
mContentViewer->Destroy();
|
||||||
|
mContentViewer = nullptr;
|
||||||
|
}
|
||||||
|
|
||||||
if (--gDocShellCount == 0) {
|
if (--gDocShellCount == 0) {
|
||||||
NS_IF_RELEASE(sURIFixup);
|
NS_IF_RELEASE(sURIFixup);
|
||||||
}
|
}
|
||||||
|
10
dom/cache/StreamList.cpp
vendored
10
dom/cache/StreamList.cpp
vendored
@ -138,7 +138,15 @@ StreamList::CloseAll()
|
|||||||
{
|
{
|
||||||
NS_ASSERT_OWNINGTHREAD(StreamList);
|
NS_ASSERT_OWNINGTHREAD(StreamList);
|
||||||
if (mStreamControl) {
|
if (mStreamControl) {
|
||||||
mStreamControl->CloseAll();
|
auto streamControl = mStreamControl;
|
||||||
|
mStreamControl = nullptr;
|
||||||
|
|
||||||
|
streamControl->CloseAll();
|
||||||
|
|
||||||
|
mStreamControl = streamControl;
|
||||||
|
streamControl = nullptr;
|
||||||
|
|
||||||
|
mStreamControl->Shutdown();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user