From 89353b605f606fdbbf9fb0e9168cf9be9c508067 Mon Sep 17 00:00:00 2001 From: "sfraser%netscape.com" Date: Thu, 24 Aug 2000 01:45:51 +0000 Subject: [PATCH] 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 git-svn-id: svn://10.0.0.236/trunk@77025 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/xpfe/appshell/src/nsAppShellService.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/mozilla/xpfe/appshell/src/nsAppShellService.cpp b/mozilla/xpfe/appshell/src/nsAppShellService.cpp index ddc3b248a6d..5d10a315fa8 100644 --- a/mozilla/xpfe/appshell/src/nsAppShellService.cpp +++ b/mozilla/xpfe/appshell/src/nsAppShellService.cpp @@ -418,6 +418,13 @@ nsAppShellService::Quit() } } + { + nsCOMPtr 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