Index: bench/subset/SubsetZoomBench.cpp |
diff --git a/bench/subset/SubsetZoomBench.cpp b/bench/subset/SubsetZoomBench.cpp |
index 12dd88521d0024ecc6e191dd340e58d0c1932f10..22bca23318bc2fd6c2c951f4e3b43e74e69a2ba0 100644 |
--- a/bench/subset/SubsetZoomBench.cpp |
+++ b/bench/subset/SubsetZoomBench.cpp |
@@ -63,8 +63,8 @@ void SubsetZoomBench::onDraw(const int n, SkCanvas* canvas) { |
SkAutoTDelete<SkCodec> codec(SkCodec::NewFromStream(fStream->duplicate())); |
const SkImageInfo info = codec->getInfo().makeColorType(fColorType); |
SkAutoTDeleteArray<uint8_t> row(SkNEW_ARRAY(uint8_t, info.minRowBytes())); |
- SkScanlineDecoder* scanlineDecoder = codec->getScanlineDecoder( |
- info, NULL, colors, &colorCount); |
+ SkAutoTDelete<SkScanlineDecoder> scanlineDecoder(codec->getScanlineDecoder( |
+ info, NULL, colors, &colorCount)); |
const int centerX = info.width() / 2; |
const int centerY = info.height() / 2; |