Commit 3c689f5b authored by Piotr Szymanski's avatar Piotr Szymanski

- dont crash when generator not initialised

svn path=/trunk/playground/graphics/oKular/kpdf/; revision=455529
parent 6f4ead4d
......@@ -319,7 +319,8 @@ void KPDFDocument::closeDocument()
if ( d->saveBookmarksTimer )
d->saveBookmarksTimer->stop();
generator->freeGUI();
if (generator)
generator->freeGUI();
if (!m_usingCachedGenerator)
{
// delete contents generator
......
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