summaryrefslogtreecommitdiffstats
path: root/libs
diff options
context:
space:
mode:
Diffstat (limited to 'libs')
-rw-r--r--libs/hwui/GradientCache.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/hwui/GradientCache.h b/libs/hwui/GradientCache.h
index 086921c..45c1005 100644
--- a/libs/hwui/GradientCache.h
+++ b/libs/hwui/GradientCache.h
@@ -58,8 +58,8 @@ struct GradientCacheEntry {
}
~GradientCacheEntry() {
- delete[] colors;
- delete[] positions;
+ if (colors) delete[] colors;
+ if (positions) delete[] positions;
}
bool operator<(const GradientCacheEntry& r) const {