Git commit b7af929e5ea72258d04a6c6b0b782f49c12acba7 by Albert Astals Cid. Committed on 31/07/2014 at 23:27. Pushed by aacid into branch 'KDE/4.14'. Fix sporadic crash when running parttest We use m_pageController as guard for closing down instead of d->m_generator || d->m_closingLoop since m_pageController is the first thing we set to 0 on closeDocument M +2 -2 core/document.cpp http://commits.kde.org/okular/b7af929e5ea72258d04a6c6b0b782f49c12acba7 diff --git a/core/document.cpp b/core/document.cpp index c37d397..921a7e8 100644 --- a/core/document.cpp +++ b/core/document.cpp @@ -2836,7 +2836,7 @@ void Document::requestPixmaps( const QLinkedList< Pix= mapRequest * > & requests, if ( requests.isEmpty() ) return; = - if ( !d->m_generator || d->m_closingLoop ) + if ( !d->m_pageController ) { // delete requests.. QLinkedList< PixmapRequest * >::const_iterator rIt =3D requests.co= nstBegin(), rEnd =3D requests.constEnd(); @@ -4425,7 +4425,7 @@ void DocumentPrivate::calculateMaxTextPages() = void DocumentPrivate::textGenerationDone( Page *page ) { - if ( !m_generator || m_closingLoop ) return; + if ( !m_pageController ) return; = // 1. If we reached the cache limit, delete the first text page from t= he fifo if (m_allocatedTextPagesFifo.size() =3D=3D m_maxAllocatedTextPages)