Fix incorrect memory cleanup in SkiaShader.
Bug #2895037
Change-Id: Id233c2a8a5b709dc9f26ff60aad989e9583a2382
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() {
- delete mBounds;
- delete mColors;
- delete mPositions;
+ delete[] mBounds;
+ delete[] mColors;
+ delete[] mPositions;
}
void SkiaLinearGradientShader::describe(ProgramDescription& description,