Index: src/effects/SkTileImageFilter.cpp |
diff --git a/src/effects/SkTileImageFilter.cpp b/src/effects/SkTileImageFilter.cpp |
index ccca4ff74caf3a75ccd7e43cb6d22246d91f9674..7d3b72f0c6200bbd15f428b5bb22f866dc4baccb 100644 |
--- a/src/effects/SkTileImageFilter.cpp |
+++ b/src/effects/SkTileImageFilter.cpp |
@@ -38,6 +38,9 @@ bool SkTileImageFilter::onFilterImage(Proxy* proxy, const SkBitmap& src, const S |
} |
SkAutoTUnref<SkBaseDevice> device(proxy->createDevice(w, h)); |
+ if (NULL == device.get()) { |
+ return false; |
+ } |
SkIRect bounds; |
source.getBounds(&bounds); |
SkCanvas canvas(device); |