| Index: src/core/SkBitmap.cpp
|
| diff --git a/src/core/SkBitmap.cpp b/src/core/SkBitmap.cpp
|
| index 97b0db6f2056a0dc626040db6a052e61bcdc4702..03d1f4292b98ea854aa598fb8ac8bca7a20ab581 100644
|
| --- a/src/core/SkBitmap.cpp
|
| +++ b/src/core/SkBitmap.cpp
|
| @@ -1145,7 +1145,7 @@ bool SkBitmap::ReadRawPixels(SkReadBuffer* buffer, SkBitmap* bitmap) {
|
|
|
| SkAutoTUnref<SkColorTable> ctable;
|
| if (buffer->readBool()) {
|
| - ctable.reset(SkNEW_ARGS(SkColorTable, (*buffer)));
|
| + ctable.reset(new SkColorTable(*buffer));
|
|
|
| unsigned char maxIndex = ctable->count() ? ctable->count()-1 : 0;
|
| for (uint64_t i = 0; i < ramSize; ++i) {
|
|
|