Index: bench/subset/SubsetSingleBench.cpp |
diff --git a/bench/subset/SubsetSingleBench.cpp b/bench/subset/SubsetSingleBench.cpp |
index 9fd31e8d84288e1d8468701b52e74d37326ded4b..1828f8771f5acc47cb1595cf65a50a57a20b7eb4 100644 |
--- a/bench/subset/SubsetSingleBench.cpp |
+++ b/bench/subset/SubsetSingleBench.cpp |
@@ -67,8 +67,8 @@ void SubsetSingleBench::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)); |
SkBitmap bitmap; |
SkImageInfo subsetInfo = info.makeWH(fSubsetWidth, fSubsetHeight); |