Added NS_RELEASE in ProcessTEXTAREATag(). This fixes a problem with

text area content objects being leaked
This commit is contained in:
troy%netscape.com 1998-08-14 05:21:43 +00:00
parent c161f261c1
commit 358b26c689
2 changed files with 2 additions and 0 deletions

View File

@ -2165,6 +2165,7 @@ HTMLContentSink::ProcessTEXTAREATag(nsIHTMLContent** aInstancePtrResult,
rv = (*aInstancePtrResult)->QueryInterface(kIFormControlIID, (void **)&control);
if (NS_OK == rv) {
control->SetContent(content);
NS_RELEASE(control);
}
}
}

View File

@ -2165,6 +2165,7 @@ HTMLContentSink::ProcessTEXTAREATag(nsIHTMLContent** aInstancePtrResult,
rv = (*aInstancePtrResult)->QueryInterface(kIFormControlIID, (void **)&control);
if (NS_OK == rv) {
control->SetContent(content);
NS_RELEASE(control);
}
}
}