| Index: src/images/SkImageDecoder_libgif.cpp
|
| diff --git a/src/images/SkImageDecoder_libgif.cpp b/src/images/SkImageDecoder_libgif.cpp
|
| index ef55a8f2e0cf8c454be688fc71ae038484b215f8..2677b130736037bee2e72bbc694c13bbd6b6d0ea 100644
|
| --- a/src/images/SkImageDecoder_libgif.cpp
|
| +++ b/src/images/SkImageDecoder_libgif.cpp
|
| @@ -378,8 +378,8 @@ SkImageDecoder::Result SkGIFImageDecoder::onDecode(SkStream* sk_stream, SkBitmap
|
|
|
| SkAutoLockPixels alp(*bm);
|
|
|
| - SkAutoMalloc storage(innerWidth);
|
| - uint8_t* scanline = (uint8_t*) storage.get();
|
| + SkAutoTMalloc<uint8_t> storage(innerWidth);
|
| + uint8_t* scanline = storage.get();
|
|
|
| // GIF has an option to store the scanlines of an image, plus a larger background,
|
| // filled by a fill color. In this case, we will use a subset of the larger bitmap
|
|
|