Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(252)

Issue 6453129: Fix a memory leak in SkBitmapHeap. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 4 months ago by Leon
Modified:
12 years, 4 months ago
Reviewers:
DerekS
CC:
skia-review_googlegroups.com
Base URL:
https://skia.googlecode.com/svn/trunk
Visibility:
Public.

Description

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. Committed: https://code.google.com/p/skia/source/detail?r=5137

Patch Set 1 #

Total comments: 3

Patch Set 2 : Use SkTDArray::deleteAll, and change it to use SkDELETE #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -1 line) Patch
M include/core/SkTDArray.h View 1 1 chunk +1 line, -1 line 0 comments Download
M src/core/SkBitmapHeap.cpp View 1 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 5
Leon
12 years, 4 months ago (2012-08-16 18:44:58 UTC) #1
DerekS
https://codereview.appspot.com/6453129/diff/1/src/core/SkBitmapHeap.cpp File src/core/SkBitmapHeap.cpp (right): https://codereview.appspot.com/6453129/diff/1/src/core/SkBitmapHeap.cpp#newcode109 src/core/SkBitmapHeap.cpp:109: } can we just use fLookupTable.deleteAll()
12 years, 4 months ago (2012-08-16 18:59:23 UTC) #2
Leon
https://codereview.appspot.com/6453129/diff/1/src/core/SkBitmapHeap.cpp File src/core/SkBitmapHeap.cpp (right): https://codereview.appspot.com/6453129/diff/1/src/core/SkBitmapHeap.cpp#newcode109 src/core/SkBitmapHeap.cpp:109: } On 2012/08/16 18:59:23, DerekS wrote: > can we ...
12 years, 4 months ago (2012-08-16 19:05:07 UTC) #3
Leon
https://codereview.appspot.com/6453129/diff/1/src/core/SkBitmapHeap.cpp File src/core/SkBitmapHeap.cpp (right): https://codereview.appspot.com/6453129/diff/1/src/core/SkBitmapHeap.cpp#newcode109 src/core/SkBitmapHeap.cpp:109: } On 2012/08/16 19:05:08, scroggo-work wrote: > On 2012/08/16 ...
12 years, 4 months ago (2012-08-16 20:11:21 UTC) #4
DerekS
12 years, 4 months ago (2012-08-16 20:28:42 UTC) #5
lgtm
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b