From 032bdaddecf648d6a606368b5f04b677d069a6a3 Mon Sep 17 00:00:00 2001 From: "troy%netscape.com" Date: Mon, 10 Aug 1998 05:12:25 +0000 Subject: [PATCH] Added call to Shutdown() of prefs object --- webshell/tests/viewer/nsViewerApp.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/webshell/tests/viewer/nsViewerApp.cpp b/webshell/tests/viewer/nsViewerApp.cpp index a7c1733a8d3..1f8d4a2ce76 100644 --- a/webshell/tests/viewer/nsViewerApp.cpp +++ b/webshell/tests/viewer/nsViewerApp.cpp @@ -58,6 +58,10 @@ nsViewerApp::nsViewerApp() nsViewerApp::~nsViewerApp() { Destroy(); + if (nsnull != mPrefs) { + mPrefs->Shutdown(); + NS_RELEASE(mPrefs); + } } NS_IMPL_ADDREF(nsViewerApp) @@ -86,7 +90,6 @@ nsViewerApp::QueryInterface(REFNSIID aIID, void** aInstancePtrResult) void nsViewerApp::Destroy() { - NS_IF_RELEASE(mPrefs); NS_IF_RELEASE(mCrawler); }