aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core
diff options
context:
space:
mode:
Diffstat (limited to 'src/core')
-rw-r--r--src/core/SkTMultiMap.h10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/core/SkTMultiMap.h b/src/core/SkTMultiMap.h
index 3d6e38e454..dc521debc9 100644
--- a/src/core/SkTMultiMap.h
+++ b/src/core/SkTMultiMap.h
@@ -30,14 +30,8 @@ public:
SkTMultiMap() : fCount(0) {}
~SkTMultiMap() {
- typename SkTDynamicHash<ValueList, Key>::Iter iter(&fHash);
- for ( ; !iter.done(); ++iter) {
- ValueList* next;
- for (ValueList* cur = &(*iter); cur; cur = next) {
- next = cur->fNext;
- delete cur;
- }
- }
+ SkASSERT(fCount == 0);
+ SkASSERT(fHash.count() == 0);
}
void insert(const Key& key, T* value) {