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

Issue 2297303004: Fix leaked internal font (Closed)

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

Description

Fix leaked internal font In CFGAS_FontMgrImp::LoadFont(), a new internal font is created which is never released. It needs to be correctly marked as internal font to be released. Fix this by adding a boolean parameter and pass it along during the creation of the font. BUG=pdfium:242 Committed: https://pdfium.googlesource.com/pdfium/+/6708106e6a3d54f3370c871ebf6643d1ecf58999

Patch Set 1 #

Total comments: 4

Patch Set 2 : address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+40 lines, -15 lines) Patch
M xfa/fgas/font/fgas_gefont.h View 1 3 chunks +7 lines, -3 lines 0 comments Download
M xfa/fgas/font/fgas_gefont.cpp View 1 5 chunks +31 lines, -10 lines 0 comments Download
M xfa/fgas/font/fgas_stdfontmgr.cpp View 1 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 22 (15 generated)
Wei Li
pls review, thanks
4 years, 3 months ago (2016-09-01 22:44:46 UTC) #6
Lei Zhang
lgtm with some suggestions. https://codereview.chromium.org/2297303004/diff/1/xfa/fgas/font/fgas_gefont.cpp File xfa/fgas/font/fgas_gefont.cpp (right): https://codereview.chromium.org/2297303004/diff/1/xfa/fgas/font/fgas_gefont.cpp#newcode218 xfa/fgas/font/fgas_gefont.cpp:218: m_bExtFont = bExternalFont; Can we ...
4 years, 3 months ago (2016-09-01 22:55:42 UTC) #7
Wei Li
change to the new approach https://codereview.chromium.org/2297303004/diff/1/xfa/fgas/font/fgas_gefont.cpp File xfa/fgas/font/fgas_gefont.cpp (right): https://codereview.chromium.org/2297303004/diff/1/xfa/fgas/font/fgas_gefont.cpp#newcode218 xfa/fgas/font/fgas_gefont.cpp:218: m_bExtFont = bExternalFont; On ...
4 years, 3 months ago (2016-09-01 23:43:30 UTC) #12
Lei Zhang
++lgtm
4 years, 3 months ago (2016-09-01 23:51:30 UTC) #13
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/2297303004/60001
4 years, 3 months ago (2016-09-02 00:09:58 UTC) #19
commit-bot: I haz the power
Committed patchset #2 (id:60001) as https://pdfium.googlesource.com/pdfium/+/6708106e6a3d54f3370c871ebf6643d1ecf58999
4 years, 3 months ago (2016-09-02 00:10:18 UTC) #21
Wei Li
4 years, 3 months ago (2016-09-02 00:41:54 UTC) #22
Message was sent while issue was closed.
A revert of this CL (patchset #2 id:60001) has been created in
https://codereview.chromium.org/2302213002/ by weili@chromium.org.

The reason for reverting is: asan bot doesn't like it, will investigate.

Powered by Google App Engine
This is Rietveld 408576698