diff options
-rw-r--r-- | include/core/SkTDArray.h | 2 | ||||
-rw-r--r-- | src/core/SkBitmapHeap.cpp | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/include/core/SkTDArray.h b/include/core/SkTDArray.h index 60c987d933..2d7ec186a6 100644 --- a/include/core/SkTDArray.h +++ b/include/core/SkTDArray.h @@ -266,7 +266,7 @@ public: T* iter = fArray; T* stop = fArray + fCount; while (iter < stop) { - delete (*iter); + SkDELETE (*iter); iter += 1; } this->reset(); diff --git a/src/core/SkBitmapHeap.cpp b/src/core/SkBitmapHeap.cpp index 1867af21c4..e7f9eed354 100644 --- a/src/core/SkBitmapHeap.cpp +++ b/src/core/SkBitmapHeap.cpp @@ -104,6 +104,7 @@ SkBitmapHeap::~SkBitmapHeap() { SkASSERT(0 == fBytesAllocated); fStorage.deleteAll(); SkSafeUnref(fExternalStorage); + fLookupTable.deleteAll(); } SkTRefArray<SkBitmap>* SkBitmapHeap::extractBitmaps() const { |