#596: chemspill M1626728 1620818

This commit is contained in:
Cameron Kaiser 2020-04-03 18:54:16 -07:00
parent 444a1c1fc2
commit 98aa66e3aa
2 changed files with 15 additions and 1 deletions

View File

@ -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);
}

View File

@ -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();
}
}