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>
This commit is contained in:
Julien Nabet
2013-03-01 21:28:20 +01:00
committed by Caolán McNamara
parent eda055de9e
commit f348749a83
2 changed files with 5 additions and 0 deletions

View File

@@ -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)
{

View File

@@ -152,6 +152,7 @@ namespace pdfi
public:
explicit PDFOutDev( PDFDoc* pDoc );
~PDFOutDev();
//----- get info about output device