Index: src/core/SkBitmap.cpp |
diff --git a/src/core/SkBitmap.cpp b/src/core/SkBitmap.cpp |
index d3bbecd7066dfe4d826d5bd778e635c1e5215910..dcc7b2e3035985e29f958e399879b18728871ec7 100644 |
--- a/src/core/SkBitmap.cpp |
+++ b/src/core/SkBitmap.cpp |
@@ -1632,8 +1632,7 @@ void SkBitmap::unflatten(SkFlattenableReadBuffer& buffer) { |
SkBitmap::RLEPixels::RLEPixels(int width, int height) { |
scroggo
2013/10/09 18:56:11
Does anyone use RLEPixels? Wasn't it for a config
mtklein
2013/10/09 19:07:18
No idea. Got to admit I did this change entirely
|
fHeight = height; |
- fYPtrs = (uint8_t**)sk_malloc_throw(height * sizeof(uint8_t*)); |
- sk_bzero(fYPtrs, height * sizeof(uint8_t*)); |
+ fYPtrs = (uint8_t**)sk_calloc_throw(height * sizeof(uint8_t*)); |
} |
SkBitmap::RLEPixels::~RLEPixels() { |