Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(268)

Unified Diff: src/gpu/GrResourceCache.cpp

Issue 1075853002: Valgrind sez: new[] wants delete[]. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698