From ecfb2ed35b73deec6af1091bb3a41b18a8f99b8b Mon Sep 17 00:00:00 2001 From: "sfraser%netscape.com" Date: Tue, 15 Jun 1999 23:58:41 +0000 Subject: [PATCH] Don't release the selection that you didn't addref, mister document encoder. git-svn-id: svn://10.0.0.236/trunk@35553 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/content/base/src/nsDocumentEncoder.cpp | 4 ++-- mozilla/layout/base/src/nsDocumentEncoder.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/mozilla/content/base/src/nsDocumentEncoder.cpp b/mozilla/content/base/src/nsDocumentEncoder.cpp index 678577790b5..4b3b8ef9cb6 100644 --- a/mozilla/content/base/src/nsDocumentEncoder.cpp +++ b/mozilla/content/base/src/nsDocumentEncoder.cpp @@ -97,7 +97,7 @@ nsHTMLEncoder::nsHTMLEncoder() : mMimeType("text/html") nsHTMLEncoder::~nsHTMLEncoder() { NS_IF_RELEASE(mDocument); - NS_IF_RELEASE(mSelection); + //NS_IF_RELEASE(mSelection); // no. we never addref'd it. NS_IF_RELEASE(mPresShell); } @@ -339,7 +339,7 @@ nsTextEncoder::nsTextEncoder() : mMimeType("text/plain") nsTextEncoder::~nsTextEncoder() { NS_IF_RELEASE(mDocument); - NS_IF_RELEASE(mSelection); + //NS_IF_RELEASE(mSelection); // no. we never addref'd it. NS_IF_RELEASE(mPresShell); } diff --git a/mozilla/layout/base/src/nsDocumentEncoder.cpp b/mozilla/layout/base/src/nsDocumentEncoder.cpp index 678577790b5..4b3b8ef9cb6 100644 --- a/mozilla/layout/base/src/nsDocumentEncoder.cpp +++ b/mozilla/layout/base/src/nsDocumentEncoder.cpp @@ -97,7 +97,7 @@ nsHTMLEncoder::nsHTMLEncoder() : mMimeType("text/html") nsHTMLEncoder::~nsHTMLEncoder() { NS_IF_RELEASE(mDocument); - NS_IF_RELEASE(mSelection); + //NS_IF_RELEASE(mSelection); // no. we never addref'd it. NS_IF_RELEASE(mPresShell); } @@ -339,7 +339,7 @@ nsTextEncoder::nsTextEncoder() : mMimeType("text/plain") nsTextEncoder::~nsTextEncoder() { NS_IF_RELEASE(mDocument); - NS_IF_RELEASE(mSelection); + //NS_IF_RELEASE(mSelection); // no. we never addref'd it. NS_IF_RELEASE(mPresShell); }