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

Issue 2260683003: Fix an embedder test with leaked page object (Closed)

Created:
4 years, 4 months ago by Wei Li
Modified:
4 years, 4 months ago
Reviewers:
Lei Zhang, Tom Sepez
CC:
pdfium-reviews_googlegroups.com
Base URL:
https://pdfium.googlesource.com/pdfium.git@fix
Target Ref:
refs/heads/master
Project:
pdfium
Visibility:
Public.

Description

Fix an embedder test with leaked page object The public API FPDFPage_New() incorrectly said to use FPDFPage_Delete() instead of FPDF_ClosePage() to free the new page. This led to a page object leak in an embedder test. Correct the public API description as well as its usage in the embedder test. BUG=pdfium:242 Committed: https://pdfium.googlesource.com/pdfium/+/9b777deb00fb50dba37ccc1ee69767c6e04a3ee4

Patch Set 1 #

Total comments: 4

Patch Set 2 : address comments #

Patch Set 3 : split CL #

Patch Set 4 : tidy #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -4 lines) Patch
M fpdfsdk/fpdfedit_embeddertest.cpp View 1 2 chunks +2 lines, -2 lines 0 comments Download
M public/fpdf_edit.h View 1 2 3 1 chunk +5 lines, -2 lines 0 comments Download

Messages

Total messages: 27 (18 generated)
Wei Li
pls review, thanks
4 years, 4 months ago (2016-08-19 19:48:31 UTC) #11
Tom Sepez
https://codereview.chromium.org/2260683003/diff/20001/fpdfsdk/fpdfedit_embeddertest.cpp File fpdfsdk/fpdfedit_embeddertest.cpp (right): https://codereview.chromium.org/2260683003/diff/20001/fpdfsdk/fpdfedit_embeddertest.cpp#newcode69 fpdfsdk/fpdfedit_embeddertest.cpp:69: // FPDFPage_New() doesn't add any new page into document ...
4 years, 4 months ago (2016-08-19 20:24:48 UTC) #12
Tom Sepez
Ok, here's a proposal. In public/fpdf_edit.h, we add a comment to FPDFPage_New that the actual ...
4 years, 4 months ago (2016-08-19 20:37:47 UTC) #13
Tom Sepez
https://codereview.chromium.org/2260683003/diff/20001/fpdfsdk/fsdk_baseform_embeddertest.cpp File fpdfsdk/fsdk_baseform_embeddertest.cpp (right): https://codereview.chromium.org/2260683003/diff/20001/fpdfsdk/fsdk_baseform_embeddertest.cpp#newcode45 fpdfsdk/fsdk_baseform_embeddertest.cpp:45: CBA_AnnotIterator iter( I don't understand why these should change. ...
4 years, 4 months ago (2016-08-19 20:41:18 UTC) #14
Tom Sepez
https://codereview.chromium.org/2260683003/diff/20001/fpdfsdk/fsdk_baseform_embeddertest.cpp File fpdfsdk/fsdk_baseform_embeddertest.cpp (right): https://codereview.chromium.org/2260683003/diff/20001/fpdfsdk/fsdk_baseform_embeddertest.cpp#newcode45 fpdfsdk/fsdk_baseform_embeddertest.cpp:45: CBA_AnnotIterator iter( On 2016/08/19 20:41:18, Tom Sepez wrote: > ...
4 years, 4 months ago (2016-08-19 21:02:16 UTC) #15
Wei Li
thanks for all the suggestions. Split these two cases now for easier review and understanding. ...
4 years, 4 months ago (2016-08-19 22:25:27 UTC) #18
Tom Sepez
lgtm Perfect
4 years, 4 months ago (2016-08-19 22:27:16 UTC) #21
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/2260683003/70001
4 years, 4 months ago (2016-08-19 23:19:31 UTC) #25
commit-bot: I haz the power
4 years, 4 months ago (2016-08-19 23:19:49 UTC) #27
Message was sent while issue was closed.
Committed patchset #4 (id:70001) as
https://pdfium.googlesource.com/pdfium/+/9b777deb00fb50dba37ccc1ee69767c6e04a...

Powered by Google App Engine
This is Rietveld 408576698