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

Issue 2528543003: More unique_ptrs in CXFA_FMParse::ParseForeachExpression and avoid leaks (Closed)

Created:
4 years ago by npm
Modified:
4 years ago
CC:
pdfium-reviews_googlegroups.com
Target Ref:
refs/heads/master
Project:
pdfium
Visibility:
Public.

Description

More unique_ptrs in CXFA_FMParse::ParseForeachExpression and avoid leak Commit a31098417852bdf13e693a6e0913e0706cf94098 accidentally caused a leak. Replaced pointers with unique_ptr to prevent this from happening. BUG=664891 Committed: https://pdfium.googlesource.com/pdfium/+/4e847e36fe013bcfddf71c79221887a308b9fadb

Patch Set 1 #

Patch Set 2 : Not so much unique_ptr #

Total comments: 8

Patch Set 3 : Comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+22 lines, -34 lines) Patch
M xfa/fxfa/fm2js/xfa_expression.h View 1 3 chunks +3 lines, -2 lines 0 comments Download
M xfa/fxfa/fm2js/xfa_expression.cpp View 1 3 chunks +9 lines, -16 lines 0 comments Download
M xfa/fxfa/fm2js/xfa_fmparse.cpp View 1 2 4 chunks +10 lines, -16 lines 0 comments Download

Messages

Total messages: 14 (5 generated)
npm
ptal
4 years ago (2016-11-23 19:18:39 UTC) #3
npm
Updating after discussing with Dan. Will ping when ready.
4 years ago (2016-11-23 19:27:04 UTC) #4
npm
Ok, ptal
4 years ago (2016-11-23 19:35:21 UTC) #5
dsinclair
lg to me, Tom, this look OK to you? https://codereview.chromium.org/2528543003/diff/20001/xfa/fxfa/fm2js/xfa_fmparse.cpp File xfa/fxfa/fm2js/xfa_fmparse.cpp (right): https://codereview.chromium.org/2528543003/diff/20001/xfa/fxfa/fm2js/xfa_fmparse.cpp#newcode1017 xfa/fxfa/fm2js/xfa_fmparse.cpp:1017: ...
4 years ago (2016-11-23 19:38:46 UTC) #6
Tom Sepez
https://codereview.chromium.org/2528543003/diff/20001/xfa/fxfa/fm2js/xfa_expression.cpp File xfa/fxfa/fm2js/xfa_expression.cpp (right): https://codereview.chromium.org/2528543003/diff/20001/xfa/fxfa/fm2js/xfa_expression.cpp#newcode517 xfa/fxfa/fm2js/xfa_expression.cpp:517: m_pAccessors(std::move(pAccessors)), do we need std::move here? https://codereview.chromium.org/2528543003/diff/20001/xfa/fxfa/fm2js/xfa_fmparse.cpp File xfa/fxfa/fm2js/xfa_fmparse.cpp ...
4 years ago (2016-11-23 20:21:55 UTC) #7
npm
https://codereview.chromium.org/2528543003/diff/20001/xfa/fxfa/fm2js/xfa_expression.cpp File xfa/fxfa/fm2js/xfa_expression.cpp (right): https://codereview.chromium.org/2528543003/diff/20001/xfa/fxfa/fm2js/xfa_expression.cpp#newcode517 xfa/fxfa/fm2js/xfa_expression.cpp:517: m_pAccessors(std::move(pAccessors)), On 2016/11/23 20:21:55, Tom Sepez wrote: > do ...
4 years ago (2016-11-23 20:40:27 UTC) #8
Tom Sepez
lgtm
4 years ago (2016-11-23 22:24:08 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2528543003/40001
4 years ago (2016-11-23 22:34:44 UTC) #11
commit-bot: I haz the power
4 years ago (2016-11-23 22:47:38 UTC) #14
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://pdfium.googlesource.com/pdfium/+/4e847e36fe013bcfddf71c79221887a308b9...

Powered by Google App Engine
This is Rietveld 408576698