Commit dd1c134d authored by Albert Astals Cid's avatar Albert Astals Cid

qt/poppler-page.cc: Fix memory leak in Page::textList. Patch by Jerry Epplin...

qt/poppler-page.cc: Fix memory leak in Page::textList. Patch by Jerry Epplin <jepplin@globalvelocity.com>
parent 87e474a0
2006-12-23 Albert Astals Cid <aacid@kde.org>
* qt/poppler-page.cc: Fix memory leak in Page::textList. Patch by
Jerry Epplin <jepplin@globalvelocity.com>
2006-12-20 Jeff Muizelaar <jeff@infidigm.net>
* poppler/CairoOutputDev.cc: Fix scaling of maskedImage masks. They
......
......@@ -156,7 +156,9 @@ QValueList<TextBox*> Page::textList() const
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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment