| Index: tests/SwizzlerTest.cpp
|
| diff --git a/tests/SwizzlerTest.cpp b/tests/SwizzlerTest.cpp
|
| index 7ed1c390fb3d75d369648c5abc85113239551919..c2ae07c4c813254631b7a8d8f09c07798698d25d 100644
|
| --- a/tests/SwizzlerTest.cpp
|
| +++ b/tests/SwizzlerTest.cpp
|
| @@ -29,7 +29,7 @@ static void check_fill(skiatest::Reporter* r,
|
| const size_t totalBytes = imageInfo.getSafeSize(rowBytes) + offset;
|
|
|
| // Create fake image data where every byte has a value of 0
|
| - SkAutoTDeleteArray<uint8_t> storage(SkNEW_ARRAY(uint8_t, totalBytes));
|
| + SkAutoTDeleteArray<uint8_t> storage(new uint8_t[totalBytes]);
|
| memset(storage.get(), 0, totalBytes);
|
| // Adjust the pointer in order to test on different memory alignments
|
| uint8_t* imageData = storage.get() + offset;
|
|
|