From a1a83a4ea7a404f77e58eae9cc0d2493e0707317 Mon Sep 17 00:00:00 2001 From: "mcmullen%netscape.com" Date: Thu, 10 Jun 1999 19:57:02 +0000 Subject: [PATCH] Fixed the -pref code to (1) use the new lowerStartInterCaps method names (and use the combined init() and showWindow() method), and (2) to release the prefwindow object. git-svn-id: svn://10.0.0.236/trunk@34620 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/xpfe/bootstrap/nsAppRunner.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/mozilla/xpfe/bootstrap/nsAppRunner.cpp b/mozilla/xpfe/bootstrap/nsAppRunner.cpp index 74220aae53f..c6c1b4b1aa3 100644 --- a/mozilla/xpfe/bootstrap/nsAppRunner.cpp +++ b/mozilla/xpfe/bootstrap/nsAppRunner.cpp @@ -523,10 +523,8 @@ int main(int argc, char* argv[]) nsIPrefWindow::GetIID(), (void **)&prefWindow); if (NS_SUCCEEDED(rv)) - { - prefWindow->Init(nsString("Apprunner::main()").GetUnicode()); - prefWindow->ShowWindow(nsnull); - } + prefWindow->showWindow(nsString("Apprunner::main()").GetUnicode(), nsnull, nsnull); + NS_IF_RELEASE(prefWindow); goto done; }