aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/text/GrTextBlobCache.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gpu/text/GrTextBlobCache.cpp')
-rw-r--r--src/gpu/text/GrTextBlobCache.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/gpu/text/GrTextBlobCache.cpp b/src/gpu/text/GrTextBlobCache.cpp
index f6dac691f4..c53fcb0492 100644
--- a/src/gpu/text/GrTextBlobCache.cpp
+++ b/src/gpu/text/GrTextBlobCache.cpp
@@ -8,14 +8,13 @@
#include "GrTextBlobCache.h"
GrTextBlobCache::~GrTextBlobCache() {
- this->freeAll();
+ SkDEBUGCODE(this->freeAll();)
}
void GrTextBlobCache::freeAll() {
fBlobIDCache.foreach([this](uint32_t, BlobIDCacheEntry* entry) {
- for (auto* blob : entry->fBlobs) {
- fBlobList.remove(blob);
- blob->unref();
+ for (const auto& blob : entry->fBlobs) {
+ fBlobList.remove(blob.get());
}
});