Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(226)

Issue 23068033: remove mismatched delete (Closed)

Created:
7 years, 4 months ago by scroggo
Modified:
7 years, 3 months ago
Reviewers:
bungeman-skia
CC:
skia-review_googlegroups.com
Visibility:
Public.

Description

Remove mismatched delete. Use SkAutoTArray to create an array and delete it safely. BUG=https://code.google.com/p/skia/issues/detail?id=1547 R=bungeman@google.com Committed: https://code.google.com/p/skia/source/detail?r=10925

Patch Set 1 #

Total comments: 2

Patch Set 2 : #

Total comments: 1

Patch Set 3 : Respond to comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -2 lines) Patch
M src/utils/debugger/SkObjectParser.cpp View 1 2 1 chunk +1 line, -2 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
scroggo
7 years, 4 months ago (2013-08-22 14:51:27 UTC) #1
bungeman-skia
https://codereview.chromium.org/23068033/diff/1/src/utils/debugger/SkObjectParser.cpp File src/utils/debugger/SkObjectParser.cpp (right): https://codereview.chromium.org/23068033/diff/1/src/utils/debugger/SkObjectParser.cpp#newcode339 src/utils/debugger/SkObjectParser.cpp:339: char* utf8 = new char[sizeNeeded]; suppose this should then ...
7 years, 4 months ago (2013-08-22 14:59:30 UTC) #2
scroggo
https://codereview.chromium.org/23068033/diff/1/src/utils/debugger/SkObjectParser.cpp File src/utils/debugger/SkObjectParser.cpp (right): https://codereview.chromium.org/23068033/diff/1/src/utils/debugger/SkObjectParser.cpp#newcode339 src/utils/debugger/SkObjectParser.cpp:339: char* utf8 = new char[sizeNeeded]; On 2013/08/22 14:59:30, bungeman1 ...
7 years, 4 months ago (2013-08-22 15:43:59 UTC) #3
bungeman-skia
https://codereview.chromium.org/23068033/diff/6001/src/utils/debugger/SkObjectParser.cpp File src/utils/debugger/SkObjectParser.cpp (right): https://codereview.chromium.org/23068033/diff/6001/src/utils/debugger/SkObjectParser.cpp#newcode340 src/utils/debugger/SkObjectParser.cpp:340: char* utf8 = autoArray.get(); I like SkAutoSTMalloc<0x100, char> utf8(sizeNeeded); ...
7 years, 4 months ago (2013-08-22 20:03:09 UTC) #4
scroggo
On 2013/08/22 20:03:09, bungeman1 wrote: > https://codereview.chromium.org/23068033/diff/6001/src/utils/debugger/SkObjectParser.cpp > File src/utils/debugger/SkObjectParser.cpp (right): > > https://codereview.chromium.org/23068033/diff/6001/src/utils/debugger/SkObjectParser.cpp#newcode340 > ...
7 years, 3 months ago (2013-08-26 20:31:27 UTC) #5
bungeman-skia
lgtm
7 years, 3 months ago (2013-08-26 21:18:41 UTC) #6
scroggo
7 years, 3 months ago (2013-08-26 21:20:29 UTC) #7
Message was sent while issue was closed.
Committed patchset #3 manually as r10925 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698