mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 19:35:51 +00:00
Added a Release.. to fix a leak
This commit is contained in:
parent
ae9532ab74
commit
0d650e898c
@ -1280,6 +1280,7 @@ nsListControlFrame::GetMaxNumValues()
|
||||
nsIDOMHTMLCollection* options = GetOptions(mContent);
|
||||
if (options) {
|
||||
options->GetLength(&length);
|
||||
NS_RELEASE(options);
|
||||
}
|
||||
return (PRInt32)length; // XXX fix return on GetMaxNumValues
|
||||
} else {
|
||||
|
@ -1280,6 +1280,7 @@ nsListControlFrame::GetMaxNumValues()
|
||||
nsIDOMHTMLCollection* options = GetOptions(mContent);
|
||||
if (options) {
|
||||
options->GetLength(&length);
|
||||
NS_RELEASE(options);
|
||||
}
|
||||
return (PRInt32)length; // XXX fix return on GetMaxNumValues
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user