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);