From 64fd8989442b4a2bb9e7eb0a6feba43381d38eb9 Mon Sep 17 00:00:00 2001 From: Norbert Thiebaud Date: Sun, 17 Feb 2013 16:38:48 -0600 Subject: coverity#983175 Resource leak MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I03eadb6f1e7235f03149a386c407066f81473772 Reviewed-on: https://gerrit.libreoffice.org/2207 Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sdext') 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; -- cgit