238464 - Crash setting wallpaper to a broken image. Patch by Jon Henry, r=mconnor, a=ben
This commit is contained in:
@@ -597,7 +597,8 @@ nsWindowsShellService::SetDesktopBackground(nsIDOMElement* aElement,
|
||||
if (!request) return rv;
|
||||
nsCOMPtr<imgIContainer> container;
|
||||
rv = request->GetImage(getter_AddRefs(container));
|
||||
if (!request) return rv;
|
||||
if (!container)
|
||||
return NS_ERROR_FAILURE;
|
||||
|
||||
// get the current frame, which holds the image data
|
||||
container->GetCurrentFrame(getter_AddRefs(gfxFrame));
|
||||
|
||||
Reference in New Issue
Block a user