diff options
author | Romain Guy <romainguy@google.com> | 2010-08-06 10:57:58 -0700 |
---|---|---|
committer | Romain Guy <romainguy@google.com> | 2010-08-06 10:57:58 -0700 |
commit | 25ee037fee1607e8a77b1f2e259356e74dd6f645 (patch) | |
tree | 718fa6ae00f5d28c074b563690e703aa9d6ec392 /libs/hwui/SkiaShader.cpp | |
parent | f9263dd0eac376bb038ad4d75984929bf34ec82a (diff) | |
download | frameworks_base-25ee037fee1607e8a77b1f2e259356e74dd6f645.zip frameworks_base-25ee037fee1607e8a77b1f2e259356e74dd6f645.tar.gz frameworks_base-25ee037fee1607e8a77b1f2e259356e74dd6f645.tar.bz2 |
Fix incorrect memory cleanup in SkiaShader.
Bug #2895037
Change-Id: Id233c2a8a5b709dc9f26ff60aad989e9583a2382
Diffstat (limited to 'libs/hwui/SkiaShader.cpp')
-rw-r--r-- | libs/hwui/SkiaShader.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libs/hwui/SkiaShader.cpp b/libs/hwui/SkiaShader.cpp index fe4b54d..ffdb348 100644 --- a/libs/hwui/SkiaShader.cpp +++ b/libs/hwui/SkiaShader.cpp @@ -133,9 +133,9 @@ SkiaLinearGradientShader::SkiaLinearGradientShader(float* bounds, uint32_t* colo } SkiaLinearGradientShader::~SkiaLinearGradientShader() { - delete mBounds; - delete mColors; - delete mPositions; + delete[] mBounds; + delete[] mColors; + delete[] mPositions; } void SkiaLinearGradientShader::describe(ProgramDescription& description, |