Index: src/gpu/GrResourceCache.cpp |
diff --git a/src/gpu/GrResourceCache.cpp b/src/gpu/GrResourceCache.cpp |
index f1a51b06c34971b8d4675c1c5aabed829ca45b52..ae9c68f3c4f1d69264340c2ad1efe378c7b0eb1a 100644 |
--- a/src/gpu/GrResourceCache.cpp |
+++ b/src/gpu/GrResourceCache.cpp |
@@ -83,7 +83,7 @@ GrResourceCache::GrResourceCache() |
GrResourceCache::~GrResourceCache() { |
this->releaseAll(); |
- SkDELETE(fFlushTimestamps); |
+ SkDELETE_ARRAY(fFlushTimestamps); |
} |
void GrResourceCache::setLimits(int count, size_t bytes, int maxUnusedFlushes) { |
@@ -95,7 +95,7 @@ void GrResourceCache::setLimits(int count, size_t bytes, int maxUnusedFlushes) { |
} |
void GrResourceCache::resetFlushTimestamps() { |
- SkDELETE(fFlushTimestamps); |
+ SkDELETE_ARRAY(fFlushTimestamps); |
// We assume this number is a power of two when wrapping indices into the timestamp array. |
fMaxUnusedFlushes = SkNextPow2(fMaxUnusedFlushes); |