mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-01 13:57:32 +00:00
Added NS_RELEASE in ProcessTEXTAREATag(). This fixes a problem with
text area content objects being leaked
This commit is contained in:
parent
c161f261c1
commit
358b26c689
@ -2165,6 +2165,7 @@ HTMLContentSink::ProcessTEXTAREATag(nsIHTMLContent** aInstancePtrResult,
|
||||
rv = (*aInstancePtrResult)->QueryInterface(kIFormControlIID, (void **)&control);
|
||||
if (NS_OK == rv) {
|
||||
control->SetContent(content);
|
||||
NS_RELEASE(control);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -2165,6 +2165,7 @@ HTMLContentSink::ProcessTEXTAREATag(nsIHTMLContent** aInstancePtrResult,
|
||||
rv = (*aInstancePtrResult)->QueryInterface(kIFormControlIID, (void **)&control);
|
||||
if (NS_OK == rv) {
|
||||
control->SetContent(content);
|
||||
NS_RELEASE(control);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user