зеркало из https://github.com/mozilla/pjs.git
Explicitly close the hidden window before we leave nsAppShellService::Quit(). This change was deemed a Good Thing a while back by danm, and helps avoid shutdown memory leaks (esp. on Mac). r=danm
This commit is contained in:
Родитель
20ea3fa277
Коммит
8d0774395a
|
@ -418,6 +418,13 @@ nsAppShellService::Quit()
|
|||
}
|
||||
}
|
||||
|
||||
{
|
||||
nsCOMPtr<nsIWebShellWindow> hiddenWin(do_QueryInterface(mHiddenWindow));
|
||||
if (hiddenWin)
|
||||
hiddenWin->Close();
|
||||
mHiddenWindow = nsnull;
|
||||
}
|
||||
|
||||
// Note that we don't allow any premature returns from the above
|
||||
// loop: no matter what, make sure we send the exit event. If
|
||||
// worst comes to worst, we'll do a leaky shutdown but we WILL
|
||||
|
|
Загрузка…
Ссылка в новой задаче