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

Issue 2194393002: Fix a leak with FPDFPageObj_NewImgeObj(). (Closed)

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

Description

Patch Set 1 #

Total comments: 5

Patch Set 2 : fix #

Total comments: 4

Patch Set 3 : new strategy #

Total comments: 6

Patch Set 4 : rebase #

Patch Set 5 : nit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+156 lines, -89 lines) Patch
M BUILD.gn View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M core/fpdfapi/fpdf_edit/cpdf_pagecontentgenerator.cpp View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M core/fpdfapi/fpdf_page/cpdf_image.cpp View 1 2 4 chunks +41 lines, -54 lines 0 comments Download
M core/fpdfapi/fpdf_page/cpdf_imageobject.cpp View 1 2 3 4 2 chunks +33 lines, -10 lines 0 comments Download
M core/fpdfapi/fpdf_page/fpdf_page_doc.cpp View 1 2 3 1 chunk +2 lines, -4 lines 0 comments Download
M core/fpdfapi/fpdf_page/fpdf_page_parser.cpp View 1 2 3 1 chunk +5 lines, -5 lines 0 comments Download
M core/fpdfapi/fpdf_page/include/cpdf_image.h View 1 2 4 chunks +8 lines, -12 lines 0 comments Download
M core/fpdfapi/fpdf_page/include/cpdf_imageobject.h View 1 2 2 chunks +10 lines, -1 line 0 comments Download
M fpdfsdk/fpdfeditimg.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
A fpdfsdk/fpdfeditimg_unittest.cpp View 1 chunk +52 lines, -0 lines 0 comments Download
M pdfium.gyp View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 34 (21 generated)
Lei Zhang
New unit tests pass with LSAN locally. https://codereview.chromium.org/2194393002/diff/1/core/fpdfapi/fpdf_page/cpdf_imageobject.cpp File core/fpdfapi/fpdf_page/cpdf_imageobject.cpp (right): https://codereview.chromium.org/2194393002/diff/1/core/fpdfapi/fpdf_page/cpdf_imageobject.cpp#newcode28 core/fpdfapi/fpdf_page/cpdf_imageobject.cpp:28: delete m_pImage; ...
4 years, 4 months ago (2016-08-01 22:08:03 UTC) #2
Lei Zhang
Bleh, red trybots. Will ping you after I work that out.
4 years, 4 months ago (2016-08-01 22:21:17 UTC) #7
Lei Zhang
Ready for review.
4 years, 4 months ago (2016-08-04 13:48:21 UTC) #13
Wei Li
https://codereview.chromium.org/2194393002/diff/1/core/fpdfapi/fpdf_page/cpdf_imageobject.cpp File core/fpdfapi/fpdf_page/cpdf_imageobject.cpp (right): https://codereview.chromium.org/2194393002/diff/1/core/fpdfapi/fpdf_page/cpdf_imageobject.cpp#newcode28 core/fpdfapi/fpdf_page/cpdf_imageobject.cpp:28: delete m_pImage; On 2016/08/01 22:08:03, Lei Zhang wrote: > ...
4 years, 4 months ago (2016-08-04 18:00:39 UTC) #14
Lei Zhang
https://codereview.chromium.org/2194393002/diff/1/core/fpdfapi/fpdf_page/cpdf_imageobject.cpp File core/fpdfapi/fpdf_page/cpdf_imageobject.cpp (right): https://codereview.chromium.org/2194393002/diff/1/core/fpdfapi/fpdf_page/cpdf_imageobject.cpp#newcode28 core/fpdfapi/fpdf_page/cpdf_imageobject.cpp:28: delete m_pImage; On 2016/08/04 18:00:39, Wei Li wrote: > ...
4 years, 4 months ago (2016-08-04 21:58:26 UTC) #15
Wei Li
https://codereview.chromium.org/2194393002/diff/1/core/fpdfapi/fpdf_page/cpdf_imageobject.cpp File core/fpdfapi/fpdf_page/cpdf_imageobject.cpp (right): https://codereview.chromium.org/2194393002/diff/1/core/fpdfapi/fpdf_page/cpdf_imageobject.cpp#newcode28 core/fpdfapi/fpdf_page/cpdf_imageobject.cpp:28: delete m_pImage; On 2016/08/04 21:58:25, Lei Zhang wrote: > ...
4 years, 4 months ago (2016-08-04 23:36:40 UTC) #16
Lei Zhang
https://codereview.chromium.org/2194393002/diff/1/core/fpdfapi/fpdf_page/cpdf_imageobject.cpp File core/fpdfapi/fpdf_page/cpdf_imageobject.cpp (right): https://codereview.chromium.org/2194393002/diff/1/core/fpdfapi/fpdf_page/cpdf_imageobject.cpp#newcode28 core/fpdfapi/fpdf_page/cpdf_imageobject.cpp:28: delete m_pImage; On 2016/08/04 23:36:39, Wei Li wrote: > ...
4 years, 4 months ago (2016-08-05 18:55:22 UTC) #17
Lei Zhang
https://codereview.chromium.org/2194393002/diff/40001/core/fpdfapi/fpdf_page/cpdf_image.cpp File core/fpdfapi/fpdf_page/cpdf_image.cpp (left): https://codereview.chromium.org/2194393002/diff/40001/core/fpdfapi/fpdf_page/cpdf_image.cpp#oldcode57 core/fpdfapi/fpdf_page/cpdf_image.cpp:57: FX_BOOL CPDF_Image::LoadImageF(CPDF_Stream* pStream, FX_BOOL bInline) { Made into a ...
4 years, 4 months ago (2016-08-06 07:39:49 UTC) #22
Lei Zhang
ping
4 years, 4 months ago (2016-08-09 18:46:40 UTC) #23
Wei Li
sorry, didn't see the new update. lgtm with a couple nits. https://codereview.chromium.org/2194393002/diff/40001/core/fpdfapi/fpdf_page/cpdf_imageobject.cpp File core/fpdfapi/fpdf_page/cpdf_imageobject.cpp (right): ...
4 years, 4 months ago (2016-08-09 22:22:07 UTC) #24
Lei Zhang
https://codereview.chromium.org/2194393002/diff/40001/core/fpdfapi/fpdf_page/cpdf_imageobject.cpp File core/fpdfapi/fpdf_page/cpdf_imageobject.cpp (right): https://codereview.chromium.org/2194393002/diff/40001/core/fpdfapi/fpdf_page/cpdf_imageobject.cpp#newcode60 core/fpdfapi/fpdf_page/cpdf_imageobject.cpp:60: m_pImage = pImage.release(); On 2016/08/09 22:22:07, Wei Li wrote: ...
4 years, 4 months ago (2016-08-09 22:28:52 UTC) #25
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/2194393002/80001
4 years, 4 months ago (2016-08-09 22:46:05 UTC) #32
commit-bot: I haz the power
4 years, 4 months ago (2016-08-09 22:46:24 UTC) #34
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://pdfium.googlesource.com/pdfium/+/dc359b03ab6a70ee52a91119ff6704cae92f...

Powered by Google App Engine
This is Rietveld 408576698