diff options
author | weili <weili@chromium.org> | 2016-09-08 10:11:16 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-09-08 10:11:16 -0700 |
commit | 5c48effa667fbfc7a3ff7f03e73887347975bec5 (patch) | |
tree | 9c7586ccab22bbe4ef67e9180af0349358c81b72 /docs | |
parent | 8c2a8cda1bdb9f57513af5a21a5d0ce32614e52b (diff) | |
download | pdfium-5c48effa667fbfc7a3ff7f03e73887347975bec5.tar.xz |
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
Review-Url: https://codereview.chromium.org/2322483003
Diffstat (limited to 'docs')
0 files changed, 0 insertions, 0 deletions