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

Issue 2445753002: Fix root dictionary leak in cpdf_document_unittest (Closed)

Created:
4 years, 1 month ago by npm
Modified:
4 years, 1 month ago
Reviewers:
Tom Sepez, Lei Zhang, Wei Li
CC:
pdfium-reviews_googlegroups.com
Target Ref:
refs/heads/master
Project:
pdfium
Visibility:
Public.

Description

Fix root dictionary leak in cpdf_document_unittest The CPDF_Document does not own its root dictionary, so add ownership in CPDF_TestDocumentForPages, using ReleaseDeleter because the dictionary cannot be deleted. R=tsepez@chromium.org Committed: https://pdfium.googlesource.com/pdfium/+/b674ebe6dd13288160ad8e324d719a124caf5a83

Patch Set 1 #

Total comments: 2

Patch Set 2 : Use name convention #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -3 lines) Patch
M core/fpdfapi/parser/cpdf_document_unittest.cpp View 1 2 chunks +9 lines, -3 lines 0 comments Download

Messages

Total messages: 14 (9 generated)
npm
PTAL
4 years, 1 month ago (2016-10-24 15:15:24 UTC) #5
Tom Sepez
lgtm https://codereview.chromium.org/2445753002/diff/1/core/fpdfapi/parser/cpdf_document_unittest.cpp File core/fpdfapi/parser/cpdf_document_unittest.cpp (right): https://codereview.chromium.org/2445753002/diff/1/core/fpdfapi/parser/cpdf_document_unittest.cpp#newcode79 core/fpdfapi/parser/cpdf_document_unittest.cpp:79: std::unique_ptr<CPDF_Dictionary, ReleaseDeleter<CPDF_Dictionary>> rootDict; nit: how about root_dict_ to ...
4 years, 1 month ago (2016-10-24 16:09:52 UTC) #8
npm
https://codereview.chromium.org/2445753002/diff/1/core/fpdfapi/parser/cpdf_document_unittest.cpp File core/fpdfapi/parser/cpdf_document_unittest.cpp (right): https://codereview.chromium.org/2445753002/diff/1/core/fpdfapi/parser/cpdf_document_unittest.cpp#newcode79 core/fpdfapi/parser/cpdf_document_unittest.cpp:79: std::unique_ptr<CPDF_Dictionary, ReleaseDeleter<CPDF_Dictionary>> rootDict; On 2016/10/24 16:09:52, Tom Sepez wrote: ...
4 years, 1 month ago (2016-10-24 16:17:34 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/2445753002/20001
4 years, 1 month ago (2016-10-24 16:18:04 UTC) #12
npm
4 years, 1 month ago (2016-10-24 17:12:37 UTC) #14
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
b674ebe6dd13288160ad8e324d719a124caf5a83 (tree was closed).

Powered by Google App Engine
This is Rietveld 408576698