From abd0d10a028e947977ff848a76a12c3dda12823a Mon Sep 17 00:00:00 2001 From: "rods%netscape.com" Date: Wed, 27 Jan 1999 15:25:56 +0000 Subject: [PATCH] The :prefs" variable in the "Print" method is null so I changed NS_RELEASE(prefs) to NS_IF_RELEASE(prefs) why is prefs null?? git-svn-id: svn://10.0.0.236/trunk@18772 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/webshell/src/nsDocumentViewer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mozilla/webshell/src/nsDocumentViewer.cpp b/mozilla/webshell/src/nsDocumentViewer.cpp index 5e662516be9..6f7982d9977 100644 --- a/mozilla/webshell/src/nsDocumentViewer.cpp +++ b/mozilla/webshell/src/nsDocumentViewer.cpp @@ -562,7 +562,7 @@ NS_IMETHODIMP DocumentViewerImpl::Print(void) NS_RELEASE(vm); NS_RELEASE(ss); NS_RELEASE(newdx); - NS_RELEASE(prefs); + NS_IF_RELEASE(prefs); // XXX why is the prefs null?? } NS_RELEASE(dx);