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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user