Update of /cvs/poppler/poppler/qt
In directory kemper:/tmp/cvs-serv15816/qt

Modified Files:
        poppler-page.cc 
Log Message:
qt/poppler-page.cc: Fix memory leak in Page::textList. Patch by Jerry Epplin 
<[EMAIL PROTECTED]>


Index: poppler-page.cc
===================================================================
RCS file: /cvs/poppler/poppler/qt/poppler-page.cc,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -d -r1.17 -r1.18
--- poppler-page.cc     16 Aug 2006 14:35:14 -0000      1.17
+++ poppler-page.cc     22 Dec 2006 23:27:54 -0000      1.18
@@ -156,7 +156,9 @@
   
   for (int i = 0; i < word_list->getLength(); i++) {
     TextWord *word = word_list->get(i);
-    QString string = QString::fromUtf8(word->getText()->getCString());
+    GooString *word_str = word->getText();
+    QString string = QString::fromUtf8(word_str->getCString());
+    delete word_str;
     double xMin, yMin, xMax, yMax;
     word->getBBox(&xMin, &yMin, &xMax, &yMax);
     

_______________________________________________
poppler mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/poppler

Reply via email to