Added missing NS_RELEASE() to GetWidget() function

This commit is contained in:
troy%netscape.com 1998-11-23 04:41:51 +00:00
parent ed71db5508
commit b8e18747a2
2 changed files with 2 additions and 0 deletions

View File

@ -485,6 +485,7 @@ nsFormControlFrame::GetWidget(nsIView* aView, nsIWidget** aWidget)
if (NS_FAILED(result)) {
NS_ASSERTION(0, "The widget interface is invalid"); // need to print out more details of the widget
}
NS_RELEASE(widget);
}
return result;

View File

@ -485,6 +485,7 @@ nsFormControlFrame::GetWidget(nsIView* aView, nsIWidget** aWidget)
if (NS_FAILED(result)) {
NS_ASSERTION(0, "The widget interface is invalid"); // need to print out more details of the widget
}
NS_RELEASE(widget);
}
return result;