Index: bench/subset/SubsetTranslateBench.cpp |
diff --git a/bench/subset/SubsetTranslateBench.cpp b/bench/subset/SubsetTranslateBench.cpp |
index 2745a9c1abc9b024109772d199165ae7067f1922..708cb553c79243023611d102866f917f386de545 100644 |
--- a/bench/subset/SubsetTranslateBench.cpp |
+++ b/bench/subset/SubsetTranslateBench.cpp |
@@ -63,8 +63,8 @@ void SubsetTranslateBench::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; |
// Note that we use the same bitmap for all of the subsets. |