[poppler] poppler/qt4/src: poppler-page.cc,1.29,1.30
Albert Astals Cid
aacid at kemper.freedesktop.org
Sun Nov 19 10:51:25 PST 2006
Update of /cvs/poppler/poppler/qt4/src
In directory kemper:/tmp/cvs-serv12434/qt4/src
Modified Files:
poppler-page.cc
Log Message:
Another leak fix on qt4/src/poppler-page.cc the previous changelog is enough for this one ;-)
Index: poppler-page.cc
===================================================================
RCS file: /cvs/poppler/poppler/qt4/src/poppler-page.cc,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -d -r1.29 -r1.30
--- poppler-page.cc 19 Nov 2006 12:59:48 -0000 1.29
+++ poppler-page.cc 19 Nov 2006 18:51:23 -0000 1.30
@@ -490,7 +490,10 @@
::Page *pdfPage = m_page->parentDoc->m_doc->doc.getCatalog()->getPage(m_page->index + 1);
pdfPage->getAnnots( &annotArray );
if ( !annotArray.isArray() || annotArray.arrayGetLength() < 1 )
+ {
+ annotArray.free();
return QList<Annotation*>();
+ }
// ID to Annotation/PopupWindow maps
QMap< int, Annotation * > annotationsMap;
@@ -1213,6 +1216,7 @@
}
}
+ annotArray.free();
/** 5 - finally RETURN ANNOTATIONS */
return annotationsMap.values();
}
More information about the poppler
mailing list