Index: src/core/SkDraw.cpp |
diff --git a/src/core/SkDraw.cpp b/src/core/SkDraw.cpp |
index addd6ec5555be4eb01cf09f58118ba5ba7c6ebbb..7ebad61ddefa1dca87fb6b5efed388a165cc8a27 100644 |
--- a/src/core/SkDraw.cpp |
+++ b/src/core/SkDraw.cpp |
@@ -1234,8 +1234,8 @@ void SkDraw::drawBitmapAsMask(const SkBitmap& bitmap, |
} |
// allocate (and clear) our temp buffer to hold the transformed bitmap |
- SkAutoMalloc storage(size); |
- mask.fImage = (uint8_t*)storage.get(); |
+ SkAutoTMalloc<uint8_t> storage(size); |
+ mask.fImage = storage.get(); |
memset(mask.fImage, 0, size); |
// now draw our bitmap(src) into mask(dst), transformed by the matrix |