Commit c3ab7add authored by Albert Astals Cid's avatar Albert Astals Cid
Browse files

Another leak fix on qt4/src/poppler-page.cc the previous changelog is enough for this one ;-)

parent 9e9b82da
......@@ -490,7 +490,10 @@ QList<Annotation*> Page::annotations() const
::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 @@ QList<Annotation*> Page::annotations() const
}
}
annotArray.free();
/** 5 - finally RETURN ANNOTATIONS */
return annotationsMap.values();
}
......
Markdown is supported
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