[poppler] poppler/qt: poppler-page.cc,1.17,1.17.2.1
Albert Astals Cid
aacid at kemper.freedesktop.org
Fri Dec 22 15:22:52 PST 2006
Update of /cvs/poppler/poppler/qt
In directory kemper:/tmp/cvs-serv10769/qt
Modified Files:
Tag: POPPLER_0_5_X
poppler-page.cc
Log Message:
* qt/poppler-page.cc: Fix memory leak in Page::textList. Patch by Jerry Epplin <jepplin at globalvelocity.com>
Index: poppler-page.cc
===================================================================
RCS file: /cvs/poppler/poppler/qt/poppler-page.cc,v
retrieving revision 1.17
retrieving revision 1.17.2.1
diff -u -d -r1.17 -r1.17.2.1
--- poppler-page.cc 16 Aug 2006 14:35:14 -0000 1.17
+++ poppler-page.cc 22 Dec 2006 23:22:50 -0000 1.17.2.1
@@ -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);
More information about the poppler
mailing list