mirror of
https://github.com/classilla/tenfourfox.git
synced 2025-01-30 03:33:33 +00:00
#596: chemspill M1626728 1620818
This commit is contained in:
parent
444a1c1fc2
commit
98aa66e3aa
@ -856,6 +856,12 @@ nsDocShell::~nsDocShell()
|
||||
shPrivate->SetRootDocShell(nullptr);
|
||||
}
|
||||
|
||||
if (mContentViewer) {
|
||||
mContentViewer->Close(nullptr);
|
||||
mContentViewer->Destroy();
|
||||
mContentViewer = nullptr;
|
||||
}
|
||||
|
||||
if (--gDocShellCount == 0) {
|
||||
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);
|
||||
if (mStreamControl) {
|
||||
mStreamControl->CloseAll();
|
||||
auto streamControl = mStreamControl;
|
||||
mStreamControl = nullptr;
|
||||
|
||||
streamControl->CloseAll();
|
||||
|
||||
mStreamControl = streamControl;
|
||||
streamControl = nullptr;
|
||||
|
||||
mStreamControl->Shutdown();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user