Commit 7be920ec authored by Albert Astals Cid's avatar Albert Astals Cid
Browse files

Fix mem leak in qt test app

parent 2bc26dff
2005-07-26 Albert Astals Cid <aacid@kde.org>
* qt/test-poppler-qt-cpp: Fix mem leak
2005-07-26 Kristian Høgsberg <krh@redhat.com>
* fofi/FoFiType1.cc: Make check for end of encoding array a bit
......
......@@ -28,6 +28,7 @@ private:
PDFDisplay::PDFDisplay( Poppler::Document *d )
{
doc = d;
pixmap = 0;
currentPage = 0;
display();
}
......@@ -70,6 +71,7 @@ void PDFDisplay::display()
if (doc) {
Poppler::Page *page = doc->getPage(currentPage);
if (page) {
delete pixmap;
page->renderToPixmap(&pixmap, -1, -1, -1, -1);
delete page;
update();
......
Supports Markdown
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