Index: src/gpu/GrBatchFontCache.cpp |
diff --git a/src/gpu/GrBatchFontCache.cpp b/src/gpu/GrBatchFontCache.cpp |
index a1f87cb6b3d672e9790b22c3a4bddbc1120034dd..2d6213c085175414adbb861a40d6c90b80d3f301 100644 |
--- a/src/gpu/GrBatchFontCache.cpp |
+++ b/src/gpu/GrBatchFontCache.cpp |
@@ -75,6 +75,7 @@ GrBatchFontCache::GrBatchFontCache(GrContext* context) |
GrBatchFontCache::~GrBatchFontCache() { |
SkTDynamicHash<GrBatchTextStrike, GrFontDescKey>::Iter iter(&fCache); |
while (!iter.done()) { |
+ (*iter).fIsAbandoned = true; |
(*iter).unref(); |
++iter; |
} |
@@ -86,6 +87,7 @@ GrBatchFontCache::~GrBatchFontCache() { |
void GrBatchFontCache::freeAll() { |
SkTDynamicHash<GrBatchTextStrike, GrFontDescKey>::Iter iter(&fCache); |
while (!iter.done()) { |
+ (*iter).fIsAbandoned = true; |
(*iter).unref(); |
++iter; |
} |