aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar scroggo <scroggo@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-08-16 20:30:18 +0000
committerGravatar scroggo <scroggo@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-08-16 20:30:18 +0000
commitc51db02181982fbcb8888e2a89132363a7d9371c (patch)
treeb8b150e7677d1925abf66ee0f592db0aec916686 /src
parent1d4edd38f6b62d1cc54cb7bc6f3c6ce10ccb1471 (diff)
Fix a memory leak in SkBitmapHeap.
When I switched fLookupTable to be an array of pointers, I did not delete those pointers when I was done with them. Do it now. Also modify SkTDArray::deleteAll to call SkDELETE instead of delete. Review URL: https://codereview.appspot.com/6453129 git-svn-id: http://skia.googlecode.com/svn/trunk@5137 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src')
-rw-r--r--src/core/SkBitmapHeap.cpp1
1 files changed, 1 insertions, 0 deletions
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 {