Index: src/ports/SkImageDecoder_CG.cpp |
diff --git a/src/ports/SkImageDecoder_CG.cpp b/src/ports/SkImageDecoder_CG.cpp |
index 5b32502d8efa9ab0e6ca756f47cb7919fac624a8..3e3075cc1330feb4e2723290c7edef675b38174e 100644 |
--- a/src/ports/SkImageDecoder_CG.cpp |
+++ b/src/ports/SkImageDecoder_CG.cpp |
@@ -40,6 +40,7 @@ static CGDataProviderRef SkStreamToDataProvider(SkStream* stream) { |
static CGImageSourceRef SkStreamToCGImageSource(SkStream* stream) { |
CGDataProviderRef data = SkStreamToDataProvider(stream); |
+ SkASSERT(data); |
CGImageSourceRef imageSrc = CGImageSourceCreateWithDataProvider(data, 0); |
CGDataProviderRelease(data); |
return imageSrc; |