summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author lina.x.pi <lina.x.pi@sonymobile.com> 2014-01-09 18:17:03 +0800
committer Takeshi Aimi <takeshi.aimi@sonymobile.com> 2014-01-17 13:49:26 +0900
commit920287399aa640a5352e02ab19fd23b67a8c975b (patch)
tree749dca1256860289c961917e3166761955679f0e
parent486544f763bd27eb92c95101e23f939c79c9890e (diff)
Initialize pointer members to NULL to avoid illegal reference
mBitmap and mTexture is not initialized to NULL which causes illegal address access when it fails to be created from oversized bitmap. Change-Id: Iea54bec8788bc5f3a10040fdb43f416c0d41a14c
-rw-r--r--libs/hwui/SkiaShader.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/hwui/SkiaShader.h b/libs/hwui/SkiaShader.h
index a63431cc32e6..cc56c5042196 100644
--- a/libs/hwui/SkiaShader.h
+++ b/libs/hwui/SkiaShader.h
@@ -145,7 +145,7 @@ struct SkiaBitmapShader: public SkiaShader {
GLuint* textureUnit);
private:
- SkiaBitmapShader() {
+ SkiaBitmapShader() : mBitmap(NULL), mTexture(NULL) {
}
SkBitmap* mBitmap;