mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-08-15 08:53:07 +09:00
[Docshell] Ensure nsDocShell::mContentViewer is released properly.
This commit is contained in:
parent
4337a5f1a8
commit
c8b7ac3f86
1 changed files with 6 additions and 0 deletions
|
|
@ -860,6 +860,12 @@ nsDocShell::~nsDocShell()
|
|||
shPrivate->SetRootDocShell(nullptr);
|
||||
}
|
||||
|
||||
if (mContentViewer) {
|
||||
mContentViewer->Close(nullptr);
|
||||
mContentViewer->Destroy();
|
||||
mContentViewer = nullptr;
|
||||
}
|
||||
|
||||
if (--gDocShellCount == 0) {
|
||||
NS_IF_RELEASE(sURIFixup);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue