summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlbert Astals Cid <aacid@kde.org>2008-06-01 00:07:11 +0200
committerAlbert Astals Cid <aacid@kde.org>2008-06-01 00:12:58 +0200
commit5fd139bf903de7c476eeb43c74b460e6094475ae (patch)
tree7481426eb5dd884fc0e5922479d3652069c2c1c7
parent6b9dd84db02bd162aa3c01d453ddc93a657017bb (diff)
[Qt] Fix leak when calling Poppler::Document::scanForFonts
-rw-r--r--qt/poppler-document.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/qt/poppler-document.cc b/qt/poppler-document.cc
index a316aa4f..acecc365 100644
--- a/qt/poppler-document.cc
+++ b/qt/poppler-document.cc
@@ -142,6 +142,7 @@ bool Document::scanForFonts( int numPages, QValueList<FontInfo> *fontList ) cons
(Poppler::FontInfo::Type)((::FontInfo*)items->get(i))->getType());
fontList->append(font);
}
+ deleteGooList(items, ::FontInfo);
return true;
}