[poppler] poppler/TextOutputDev.cc

Pino Toscano pino at kemper.freedesktop.org
Sat Dec 20 14:24:03 PST 2008


 poppler/TextOutputDev.cc |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit f675916277cb76cd1293225a1271f835a02148fb
Author: Pino Toscano <pino at kde.org>
Date:   Sat Dec 20 23:23:10 2008 +0100

    reset to NULL after being deleted
    
    found with poppler-qt4 unit tests =)

diff --git a/poppler/TextOutputDev.cc b/poppler/TextOutputDev.cc
index 816cc8c..14ffb37 100644
--- a/poppler/TextOutputDev.cc
+++ b/poppler/TextOutputDev.cc
@@ -4601,6 +4601,7 @@ void ActualText::endMC(GfxState *state) {
       if (!actualText->hasUnicodeMarker())
 	delete [] uniString;
       delete actualText;
+      actualText = NULL;
     }
   }
 }


More information about the poppler mailing list