don't leak the internal documents, but properly delete them

svn path=/trunk/KDE/kdegraphics/okular/; revision=719297
This commit is contained in:
Pino Toscano 2007-09-30 20:51:19 +00:00
parent 211ab15c2e
commit 7e150aeb43

View file

@ -1302,6 +1302,7 @@ bool XpsFile::closeDocument()
m_docInfo = 0;
qDeleteAll( m_documents );
m_documents.clear();
delete m_xpsArchive;