mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 381219. nsIAlertsService on mac doesn' t check for if a listener has been allocated. r=gavin.sharp
This commit is contained in:
parent
2af310476a
commit
e617dc2bd8
@ -144,6 +144,8 @@ nsAlertsService::ShowAlertNotification(const nsAString& aImageUrl,
|
||||
nsCOMPtr<nsAlertsImageLoadListener> listener =
|
||||
new nsAlertsImageLoadListener(name, aAlertTitle, aAlertText,
|
||||
aAlertClickable, aAlertCookie, ind);
|
||||
if (!listener)
|
||||
return NS_ERROR_OUT_OF_MEMORY;
|
||||
|
||||
nsCOMPtr<nsIStreamLoader> loader;
|
||||
rv = NS_NewStreamLoader(getter_AddRefs(loader), uri, listener);
|
||||
|
Loading…
Reference in New Issue
Block a user