mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-11 08:13:35 +00: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
6023cbbfcd
commit
d2424e5434
@ -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