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
This commit is contained in:
parent
fbcf0bd7ff
commit
d9f8862ab6
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user