DescriptionFix 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 #
Messages
Total messages: 15 (11 generated)
|