mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 07:42:04 +00:00
Bug 770491 - Fix leak introduced by System Message Handler API. r=khuey
This commit is contained in:
parent
bc46f77176
commit
02510f05bf
@ -10678,14 +10678,9 @@ nsGlobalWindow::SetIsApp(bool aValue)
|
||||
bool
|
||||
nsGlobalWindow::IsPartOfApp()
|
||||
{
|
||||
mozIDOMApplication* app;
|
||||
nsresult rv = GetApp(&app);
|
||||
nsCOMPtr<mozIDOMApplication> app;
|
||||
|
||||
if (NS_FAILED(rv)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return app != nsnull;
|
||||
return NS_SUCCEEDED(GetApp(getter_AddRefs(app))) ? app != nsnull : false;
|
||||
}
|
||||
|
||||
nsresult
|
||||
|
Loading…
Reference in New Issue
Block a user