diff options
author | weili <weili@chromium.org> | 2016-09-08 11:47:29 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-09-08 11:47:29 -0700 |
commit | c29fc707b24b9528e41a242cfa298275708ffc76 (patch) | |
tree | 392dcb77aef5657b51a25a632435fcc9787bcc89 /fpdfsdk/fpdfsave_embeddertest.cpp | |
parent | a31da74cffa8c3ff919051cc49bc006aeb55d345 (diff) | |
download | pdfium-c29fc707b24b9528e41a242cfa298275708ffc76.tar.xz |
Fix memory management errors for font loading and copying
A few issues are fixed:
--Change variable |m_bLogic| in CFX_Font to |m_bShallowCopy| to
reflect its meaning better;
--For a shallow copy of font, we must guarantee that the copied font
will not be deleted until the shallow copy is deleted. So need to
increase the src font's refcount when copying it;
--The stream |m_pOwnedStream| needs to have matched new/delete
These errors need to be fixed before we can properly delete all the
fonts to address the leaks.
BUG=pdfium:242
Review-Url: https://codereview.chromium.org/2322043002
Diffstat (limited to 'fpdfsdk/fpdfsave_embeddertest.cpp')
0 files changed, 0 insertions, 0 deletions