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

Issue 470253004: Fix bug in CPDF_PageContentGenerate constructor and destructor (Closed)

Created:
6 years, 4 months ago by Bo Xu
Modified:
6 years, 4 months ago
CC:
pdfium-reviews_googlegroups.com
Base URL:
https://pdfium.googlesource.com/pdfium.git@master
Visibility:
Public.

Description

Fix bug in CPDF_PageContentGenerate constructor and destructor m_pageObjects never gets initialize, thus making CPDF_PageContentGenerate::GenerateContent() doing nothing. Since the CPFD_PageObject are owned by m_pPage, no need to release them in the destructor. BUG=385119 R=thestig@chromium.org, vitalybuka@chromium.org Committed: https://pdfium.googlesource.com/pdfium/+/93d0811

Patch Set 1 #

Total comments: 2

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -7 lines) Patch
M core/src/fpdfapi/fpdf_edit/fpdf_edit_content.cpp View 1 2 chunks +5 lines, -7 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Bo Xu
Hi Vitaly, Lei, please review this. Also, in https://code.google.com/p/chromium/codesearch#chromium/src/pdf/pdfium/pdfium_engine.cc&q=pdfium_eng&sq=package:chromium&l=1 line 1074, FPDF_PAGEOBJECT img_obj = FPDFPageObj_NewImgeObj(output_doc); ...
6 years, 4 months ago (2014-08-19 23:35:28 UTC) #1
Lei Zhang
lgtm https://codereview.chromium.org/470253004/diff/1/core/src/fpdfapi/fpdf_edit/fpdf_edit_content.cpp File core/src/fpdfapi/fpdf_edit/fpdf_edit_content.cpp (right): https://codereview.chromium.org/470253004/diff/1/core/src/fpdfapi/fpdf_edit/fpdf_edit_content.cpp#newcode25 core/src/fpdfapi/fpdf_edit/fpdf_edit_content.cpp:25: if (CPDF_PageObject* pPageObj = pPage->GetNextObject(pos)) { Do you ...
6 years, 4 months ago (2014-08-20 00:04:22 UTC) #2
Vitaly Buka (NO REVIEWS)
lgtm On 2014/08/19 23:35:28, Bo Xu wrote: > Hi Vitaly, Lei, please review this. > ...
6 years, 4 months ago (2014-08-20 00:05:10 UTC) #3
Bo Xu
https://codereview.chromium.org/470253004/diff/1/core/src/fpdfapi/fpdf_edit/fpdf_edit_content.cpp File core/src/fpdfapi/fpdf_edit/fpdf_edit_content.cpp (right): https://codereview.chromium.org/470253004/diff/1/core/src/fpdfapi/fpdf_edit/fpdf_edit_content.cpp#newcode25 core/src/fpdfapi/fpdf_edit/fpdf_edit_content.cpp:25: if (CPDF_PageObject* pPageObj = pPage->GetNextObject(pos)) { On 2014/08/20 00:04:22, ...
6 years, 4 months ago (2014-08-20 00:16:57 UTC) #4
Bo Xu
6 years, 4 months ago (2014-08-20 00:17:52 UTC) #5
Message was sent while issue was closed.
Committed patchset #2 manually as 93d0811 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698