Added a Release.. to fix a leak

This commit is contained in:
dcone%netscape.com 1999-09-24 13:49:12 +00:00
parent ae9532ab74
commit 0d650e898c
2 changed files with 2 additions and 0 deletions

View File

@ -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 {

View File

@ -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 {