From 602792ee45891cd3c78aa656a4a97a8ad3abc366 Mon Sep 17 00:00:00 2001 From: "dcone%netscape.com" Date: Wed, 14 Feb 2001 05:45:05 +0000 Subject: [PATCH] Release the Presentation Context.. fixes printing leak r=kmmclusk, sr=attinasi git-svn-id: svn://10.0.0.236/trunk@86984 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/content/base/src/nsDocumentViewer.cpp | 2 +- mozilla/layout/base/nsDocumentViewer.cpp | 2 +- mozilla/layout/base/src/nsDocumentViewer.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/mozilla/content/base/src/nsDocumentViewer.cpp b/mozilla/content/base/src/nsDocumentViewer.cpp index 0a8099172b4..f23e0d0fadb 100644 --- a/mozilla/content/base/src/nsDocumentViewer.cpp +++ b/mozilla/content/base/src/nsDocumentViewer.cpp @@ -2107,7 +2107,7 @@ nsCOMPtr webContainer; NS_RELEASE(mPrintVM); NS_RELEASE(mPrintSS); NS_RELEASE(mPrintDC); - //NS_RELEASE(mPrintPC); + NS_RELEASE(mPrintPC); } } diff --git a/mozilla/layout/base/nsDocumentViewer.cpp b/mozilla/layout/base/nsDocumentViewer.cpp index 0a8099172b4..f23e0d0fadb 100644 --- a/mozilla/layout/base/nsDocumentViewer.cpp +++ b/mozilla/layout/base/nsDocumentViewer.cpp @@ -2107,7 +2107,7 @@ nsCOMPtr webContainer; NS_RELEASE(mPrintVM); NS_RELEASE(mPrintSS); NS_RELEASE(mPrintDC); - //NS_RELEASE(mPrintPC); + NS_RELEASE(mPrintPC); } } diff --git a/mozilla/layout/base/src/nsDocumentViewer.cpp b/mozilla/layout/base/src/nsDocumentViewer.cpp index 0a8099172b4..f23e0d0fadb 100644 --- a/mozilla/layout/base/src/nsDocumentViewer.cpp +++ b/mozilla/layout/base/src/nsDocumentViewer.cpp @@ -2107,7 +2107,7 @@ nsCOMPtr webContainer; NS_RELEASE(mPrintVM); NS_RELEASE(mPrintSS); NS_RELEASE(mPrintDC); - //NS_RELEASE(mPrintPC); + NS_RELEASE(mPrintPC); } }