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:
committed by
Caolán McNamara
parent
eda055de9e
commit
f348749a83
@@ -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)
|
||||
{
|
||||
|
@@ -152,6 +152,7 @@ namespace pdfi
|
||||
|
||||
public:
|
||||
explicit PDFOutDev( PDFDoc* pDoc );
|
||||
~PDFOutDev();
|
||||
|
||||
//----- get info about output device
|
||||
|
||||
|
Reference in New Issue
Block a user