From a366b6bd8d7e96c55197f77f72695af784c395e1 Mon Sep 17 00:00:00 2001 From: Pino Toscano Date: Sun, 8 Feb 2009 01:33:25 +0000 Subject: [PATCH] backport: on document closing, clear the fifo with allocated text pages (fixes potential crash because of references to potentially non-existing pages in the next open document) svn path=/branches/KDE/4.2/kdegraphics/okular/; revision=923021 --- core/document.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/core/document.cpp b/core/document.cpp index a02d8cb30..a98f81f43 100644 --- a/core/document.cpp +++ b/core/document.cpp @@ -1813,6 +1813,7 @@ void Document::closeDocument() d->m_viewportHistory.append( DocumentViewport() ); d->m_viewportIterator = d->m_viewportHistory.begin(); d->m_allocatedPixmapsTotalMemory = 0; + d->m_allocatedTextPagesFifo.clear(); d->m_pageSize = PageSize(); d->m_pageSizes.clear(); AudioPlayer::instance()->d->m_currentDocument = KUrl();