From 4d2e6308e03a48cfc1125b75d4765e16046ac182 Mon Sep 17 00:00:00 2001 From: Chris Jones Date: Wed, 9 Feb 2011 02:32:34 -0600 Subject: [PATCH] Bug 632696: Silently fail if we can't allocate a white-background image. r=mattwoodrow a=bustage --- dom/plugins/PluginInstanceChild.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dom/plugins/PluginInstanceChild.cpp b/dom/plugins/PluginInstanceChild.cpp index f6553e190c4..b8dfc5e095a 100644 --- a/dom/plugins/PluginInstanceChild.cpp +++ b/dom/plugins/PluginInstanceChild.cpp @@ -2761,6 +2761,9 @@ PluginInstanceChild::PaintRectWithAlphaExtraction(const nsIntRect& aRect, // We always use a temporary "white image" whiteImage = new gfxImageSurface(targetSize, gfxASurface::ImageFormatRGB24); + if (whiteImage->CairoStatus()) { + return; + } #ifdef XP_WIN // On windows, we need an HDC and so can't paint directly to