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
This commit is contained in:
sfraser%netscape.com
1999-06-15 23:58:41 +00:00
parent 346f6ea4e8
commit ecfb2ed35b
2 changed files with 4 additions and 4 deletions

View File

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