Index: src/codec/SkBmpMaskCodec.cpp |
diff --git a/src/codec/SkBmpMaskCodec.cpp b/src/codec/SkBmpMaskCodec.cpp |
index 1c89ba1c84de158d80efa8725aebeef6d6b6c68c..90457b2feb78d52e972a5314b0c7f8f3b919175b 100644 |
--- a/src/codec/SkBmpMaskCodec.cpp |
+++ b/src/codec/SkBmpMaskCodec.cpp |
@@ -58,7 +58,7 @@ SkCodec::Result SkBmpMaskCodec::onGetPixels(const SkImageInfo& dstInfo, |
bool SkBmpMaskCodec::initializeSwizzler(const SkImageInfo& dstInfo) { |
// Allocate space for a row buffer |
const size_t rowBytes = SkAlign4(compute_row_bytes(dstInfo.width(), this->bitsPerPixel())); |
- fSrcBuffer.reset(SkNEW_ARRAY(uint8_t, rowBytes)); |
+ fSrcBuffer.reset(new uint8_t[rowBytes]); |
// Create the swizzler |
fMaskSwizzler.reset(SkMaskSwizzler::CreateMaskSwizzler( |