[poppler] poppler/qt4/src: poppler-page.cc,1.25.2.2,1.25.2.3
Albert Astals Cid
aacid at kemper.freedesktop.org
Sun Nov 19 10:53:15 PST 2006
Update of /cvs/poppler/poppler/qt4/src
In directory kemper:/tmp/cvs-serv14815/qt4/src
Modified Files:
Tag: POPPLER_0_5_X
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.25.2.2
retrieving revision 1.25.2.3
diff -u -d -r1.25.2.2 -r1.25.2.3
--- poppler-page.cc 19 Nov 2006 13:17:13 -0000 1.25.2.2
+++ poppler-page.cc 19 Nov 2006 18:53:13 -0000 1.25.2.3
@@ -451,7 +451,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;
@@ -1174,6 +1177,7 @@
}
}
+ annotArray.free();
/** 5 - finally RETURN ANNOTATIONS */
return annotationsMap.values();
}
More information about the poppler
mailing list