mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 22:32:46 +00:00
Added missing NS_RELEASE() to GetWidget() function
This commit is contained in:
parent
ed71db5508
commit
b8e18747a2
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user