bug #65219: (work done by dbaron) r=jag, sr=scc. Remove leaking string recyclers.

git-svn-id: svn://10.0.0.236/trunk@87754 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
scc%mozilla.org
2001-02-23 02:03:02 +00:00
parent 2b8664ff14
commit 3f930de8f0
13 changed files with 52 additions and 393 deletions

View File

@@ -302,11 +302,11 @@ nsHTMLDocument::~nsHTMLDocument()
mBaseTarget = nsnull;
}
if (nsnull != mLastModified) {
nsString::Recycle(mLastModified);
delete mLastModified;
mLastModified = nsnull;
}
if (nsnull != mReferrer) {
nsString::Recycle(mReferrer);
delete mReferrer;
mReferrer = nsnull;
}
NS_IF_RELEASE(mParser);
@@ -1183,7 +1183,7 @@ nsHTMLDocument::SetLastModified(const nsAReadableString& aLastModified)
}
}
else if (nsnull != mLastModified) {
nsString::Recycle(mLastModified);
delete mLastModified;
mLastModified = nsnull;
}
@@ -1202,7 +1202,7 @@ nsHTMLDocument::SetReferrer(const nsAReadableString& aReferrer)
}
}
else if (nsnull != mReferrer) {
nsString::Recycle(mReferrer);
delete mReferrer;
mReferrer = nsnull;
}