Index: src/core/SkCachedData.cpp |
diff --git a/src/core/SkCachedData.cpp b/src/core/SkCachedData.cpp |
index 16c4eea21a49c11b9308b2c7a3b042f82c7ec4d4..439c2ffe05274c74e865cf2ec519738094807d9c 100644 |
--- a/src/core/SkCachedData.cpp |
+++ b/src/core/SkCachedData.cpp |
@@ -57,7 +57,7 @@ SkCachedData::~SkCachedData() { |
sk_free(fStorage.fMalloc); |
break; |
case kDiscardableMemory_StorageType: |
- SkDELETE(fStorage.fDM); |
+ delete fStorage.fDM; |
break; |
} |
dec(); |
@@ -88,7 +88,7 @@ void SkCachedData::internalRef(bool fromCache) const { |
void SkCachedData::internalUnref(bool fromCache) const { |
if (AutoMutexWritable(this)->inMutexUnref(fromCache)) { |
// can't delete inside doInternalUnref, since it is locking a mutex (which we own) |
- SkDELETE(this); |
+ delete this; |
} |
} |