[Libreoffice-commits] core.git: sdext/source

Julien Nabet serval2412 at yahoo.fr
Mon Mar 4 05:32:48 PST 2013


 sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx |    4 ++++
 sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx |    1 +
 2 files changed, 5 insertions(+)

New commits:
commit f348749a83cb985c5bf40603a0c8b4e3b5950eab
Author: Julien Nabet <serval2412 at yahoo.fr>
Date:   Fri Mar 1 21:28:20 2013 +0100

    coverity#982282: Resource leak in object
    
    Change-Id: Ia7d936c90d7afd4ffa4e22a86289aba47956f576
    Reviewed-on: https://gerrit.libreoffice.org/2511
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx b/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx
index 15182c2..b556486 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 e5e48fc..c479624 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
 


More information about the Libreoffice-commits mailing list