commit | d9f8862ab6bed4195cbfe5dda48693e1062b01e2 | [log] [tgz] |
---|---|---|
author | mtklein <mtklein@chromium.org> | Thu Apr 09 03:20:04 2015 -0700 |
committer | Commit bot <commit-bot@chromium.org> | Thu Apr 09 03:20:04 2015 -0700 |
tree | e60b6f767e79f54211b020f6dfe53049cf48d372 | |
parent | fbcf0bd7ff87a55d978016a686dd7dd8fc32e993 [diff] |
Valgrind sez: new[] wants delete[]. https://uberchromegw.corp.google.com/i/client.skia/builders/Test-Ubuntu-GCC-ShuttleA-GPU-GTX550Ti-x86_64-Release-Valgrind/builds/17/steps/dm/logs/stdio TBR=bsalomon@google.com BUG=skia: Review URL: https://codereview.chromium.org/1075853002
diff --git a/src/gpu/GrResourceCache.cpp b/src/gpu/GrResourceCache.cpp index f1a51b0..ae9c68f 100644 --- a/src/gpu/GrResourceCache.cpp +++ b/src/gpu/GrResourceCache.cpp
@@ -83,7 +83,7 @@ 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::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);