summaryrefslogtreecommitdiff
path: root/sdext
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2013-03-01 21:28:20 +0100
committerCaolán McNamara <caolanm@redhat.com>2013-03-04 13:32:29 +0000
commitf348749a83cb985c5bf40603a0c8b4e3b5950eab (patch)
tree675f22175b05d6f4c28a397bcc868dfb55a74e54 /sdext
parenteda055de9ea68d6d87be34c659fd0a23930ea3e2 (diff)
coverity#982282: Resource leak in object
Change-Id: Ia7d936c90d7afd4ffa4e22a86289aba47956f576 Reviewed-on: https://gerrit.libreoffice.org/2511 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.cxx4
-rw-r--r--sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx1
2 files changed, 5 insertions, 0 deletions
diff --git a/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx b/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx
index 15182c267869..b55648685252 100644
--- a/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx
+++ b/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx
@@ -486,6 +486,10 @@ PDFOutDev::PDFOutDev( PDFDoc* pDoc ) :
m_pUtf8Map( new UnicodeMap((char*)"UTF-8", gTrue, &mapUTF8) )
{
}
+PDFOutDev::~PDFOutDev()
+{
+ delete m_pUtf8Map;
+}
void PDFOutDev::startPage(int /*pageNum*/, GfxState* state)
{
diff --git a/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx b/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx
index e5e48fc8a1a0..c47962430923 100644
--- a/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx
+++ b/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx
@@ -152,6 +152,7 @@ namespace pdfi
public:
explicit PDFOutDev( PDFDoc* pDoc );
+ ~PDFOutDev();
//----- get info about output device