$NetBSD: patch-bb,v 1.3 2011/03/15 21:58:56 drochner Exp $

--- WebCore/platform/graphics/cairo/GraphicsContextCairo.cpp.orig	2010-09-10 13:20:33.000000000 +0000
+++ WebCore/platform/graphics/cairo/GraphicsContextCairo.cpp
@@ -184,6 +184,8 @@ static inline void drawPathShadow(Graphi
 
     // Create suitably-sized ImageBuffer to hold the shadow.
     OwnPtr<ImageBuffer> shadowBuffer = ImageBuffer::create(shadowBufferSize);
+    if (!shadowBuffer)
+	return;
 
     // Draw shadow into a new ImageBuffer.
     cairo_t* shadowContext = shadowBuffer->context()->platformContext();
