Index: src/codec/SkRawCodec.cpp |
diff --git a/src/codec/SkRawCodec.cpp b/src/codec/SkRawCodec.cpp |
index 05f18ac635918d448149fe112374ebd57636789c..79590d18324805add915f18ed9c80c1b7162838c 100644 |
--- a/src/codec/SkRawCodec.cpp |
+++ b/src/codec/SkRawCodec.cpp |
@@ -405,7 +405,7 @@ SkCodec::Result SkRawCodec::onGetPixels(const SkImageInfo& requestedInfo, void* |
} |
void* dstRow = dst; |
- uint8_t srcRow[width * 3]; |
+ SkAutoTMalloc<uint8_t> srcRow(width * 3); |
dng_pixel_buffer buffer; |
buffer.fData = &srcRow[0]; |