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

Issue 2322483003: Fix leaks in class CFGAS_FontMgrImp (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 leaks in class CFGAS_FontMgrImp Two leak cases are addressed here: --In CFGAS_FontMgrImp::LoadFont(), calling LoadFace() is unnecessary since the following LoadFile() does the exact same thing. Calling LoadFace() without releasing the loaded face results in a leak; --|m_Hash2Fonts| in class CFGAS_FontMgrImp owns all the fonts stored in it. The fonts need to be deleted along with the container. BUG=pdfium:242 Committed: https://pdfium.googlesource.com/pdfium/+/5c48effa667fbfc7a3ff7f03e73887347975bec5

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -5 lines) Patch
M xfa/fgas/font/fgas_stdfontmgr.cpp View 2 chunks +2 lines, -5 lines 0 comments Download

Messages

Total messages: 15 (11 generated)
Wei Li
pls review, thanks
4 years, 3 months ago (2016-09-08 17:06:53 UTC) #10
dsinclair
lgtm
4 years, 3 months ago (2016-09-08 17:11:02 UTC) #12
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/2322483003/1
4 years, 3 months ago (2016-09-08 17:11:04 UTC) #13
commit-bot: I haz the power
4 years, 3 months ago (2016-09-08 17:11:19 UTC) #15
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://pdfium.googlesource.com/pdfium/+/5c48effa667fbfc7a3ff7f03e73887347975...

Powered by Google App Engine
This is Rietveld 408576698