| Index: src/core/SkColorTable.cpp
|
| diff --git a/src/core/SkColorTable.cpp b/src/core/SkColorTable.cpp
|
| index f52ac909eb0d626fea2323000a6a561bcadb581f..8e889d44c4929a29584b0e099bee07090268b0e3 100644
|
| --- a/src/core/SkColorTable.cpp
|
| +++ b/src/core/SkColorTable.cpp
|
| @@ -49,7 +49,7 @@ SkColorTable::~SkColorTable() {
|
|
|
| const uint16_t* SkColorTable::read16BitCache() const {
|
| return f16BitCache.get([&]{
|
| - uint16_t* cache = (uint16_t*)sk_malloc_throw(fCount * sizeof(uint16_t));
|
| + auto cache = new uint16_t[fCount];
|
| for (int i = 0; i < fCount; i++) {
|
| cache[i] = SkPixel32ToPixel16_ToU16(fColors[i]);
|
| }
|
|
|