| Index: bench/nanobench.cpp
|
| diff --git a/bench/nanobench.cpp b/bench/nanobench.cpp
|
| index f10fd6367bbcecdc3ba5b4b53f798152ace372b1..dbf7124555253066fc07aa8fdc06177b0cef9dc8 100644
|
| --- a/bench/nanobench.cpp
|
| +++ b/bench/nanobench.cpp
|
| @@ -36,6 +36,7 @@
|
| #include "SkOSFile.h"
|
| #include "SkPictureRecorder.h"
|
| #include "SkPictureUtils.h"
|
| +#include "SkScanlineDecoder.h"
|
| #include "SkString.h"
|
| #include "SkSurface.h"
|
| #include "SkTaskGroup.h"
|
| @@ -512,8 +513,8 @@ static bool valid_subset_bench(const SkString& path, SkColorType colorType, bool
|
| int colorCount;
|
| const SkImageInfo info = codec->getInfo().makeColorType(colorType);
|
| 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));
|
| if (NULL == scanlineDecoder) {
|
| SkDebugf("Could not create scanline decoder for %s with color type %s. "
|
| "Skipping bench.\n", path.c_str(), get_color_name(colorType));
|
|
|