From c464dfe7bad27e9d8fabd3446b7bc72f37e21d94 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. --- content/base/src/nsDocumentEncoder.cpp | 4 ++-- layout/base/src/nsDocumentEncoder.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/content/base/src/nsDocumentEncoder.cpp b/content/base/src/nsDocumentEncoder.cpp index 678577790b5a..4b3b8ef9cb64 100644 --- a/content/base/src/nsDocumentEncoder.cpp +++ b/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/layout/base/src/nsDocumentEncoder.cpp b/layout/base/src/nsDocumentEncoder.cpp index 678577790b5a..4b3b8ef9cb64 100644 --- a/layout/base/src/nsDocumentEncoder.cpp +++ b/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); }