fixed bug 1504 (memory leak of select elements)

This commit is contained in:
karnaze@netscape.com
1998-11-24 18:54:26 +00:00
parent c910b44a24
commit 8818763f61
5 changed files with 86 additions and 30 deletions
@@ -212,6 +212,7 @@ nsSelectControlFrame::GetDesiredSize(nsIPresContext* aPresContext,
}
nsIDOMHTMLCollection* options = GetOptions(select);
if (!options) {
NS_RELEASE(select);
return;
}
@@ -289,6 +290,7 @@ nsSelectControlFrame::GetDesiredSize(nsIPresContext* aPresContext,
aDesiredLayoutSize.ascent = aDesiredLayoutSize.height;
}
NS_RELEASE(select);
NS_RELEASE(options);
}