summaryrefslogtreecommitdiff
path: root/qt
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:07:11 +0200
commitbf95c6970dacaa62512de858cf60ff6cf0c1bf7c (patch)
tree971136c26bdb79d4aa26eda958366068ca85b58f /qt
parentd21d7271fc74ab78cd157549138d0027cf179471 (diff)
[Qt] Fix leak when calling Poppler::Document::scanForFonts
Diffstat (limited to 'qt')
-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;
}