diff options
author | Norbert Thiebaud <nthiebaud@gmail.com> | 2013-02-17 16:38:48 -0600 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-02-18 15:45:28 +0000 |
commit | 64fd8989442b4a2bb9e7eb0a6feba43381d38eb9 (patch) | |
tree | 1dce27850853539640ffa3de5e2eba31e0d49255 /sdext | |
parent | a811e047be0bb30a7648d540f9a9c8a5bdae8f67 (diff) |
coverity#983175 Resource leak
Change-Id: I03eadb6f1e7235f03149a386c407066f81473772
Reviewed-on: https://gerrit.libreoffice.org/2207
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sdext')
-rw-r--r-- | sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx b/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx index 102e564d1f83..d72ab83c3d9c 100644 --- a/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx +++ b/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx @@ -427,7 +427,10 @@ int PDFOutDev::parseFont( long long nNewId, GfxFont* gfxFont, GfxState* state ) // we must write byte count to stdout before char* pBuf = gfxFont->readEmbFontFile( m_pDoc->getXRef(), &nSize ); if( pBuf ) + { aNewFont.isEmbedded = true; + gfree(pBuf); + } } m_aFontMap[ nNewId ] = aNewFont; |