Fix a memory leak in SkBitmapHeap.
authorscroggo <scroggo@2bbb7eff-a529-9590-31e7-b0007b416f81>
Thu, 16 Aug 2012 20:30:18 +0000 (20:30 +0000)
committerscroggo <scroggo@2bbb7eff-a529-9590-31e7-b0007b416f81>
Thu, 16 Aug 2012 20:30:18 +0000 (20:30 +0000)
commitc51db02181982fbcb8888e2a89132363a7d9371c
treeb8b150e7677d1925abf66ee0f592db0aec916686
parent1d4edd38f6b62d1cc54cb7bc6f3c6ce10ccb1471
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
include/core/SkTDArray.h
src/core/SkBitmapHeap.cpp