From aeab3273cf3ef088af1c7cfbf0d91f5646343d02 Mon Sep 17 00:00:00 2001 From: Pino Toscano Date: Mon, 20 Nov 2006 18:12:42 +0000 Subject: [PATCH] don't keep pointers to requests done that have been deleted svn path=/trunk/playground/graphics/okular/; revision=606532 --- generators/ghostview/generator_ghostview.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/generators/ghostview/generator_ghostview.cpp b/generators/ghostview/generator_ghostview.cpp index 5c621fd75..ccaf7348f 100644 --- a/generators/ghostview/generator_ghostview.cpp +++ b/generators/ghostview/generator_ghostview.cpp @@ -234,6 +234,7 @@ void GSGenerator::slotPixmapGenerated(const QImage* img) syncLock.unlock(); m_sRequest->page()->setPixmap( m_sRequest->id(), new QPixmap( QPixmap::fromImage( *img ) ) ); signalRequestDone( m_sRequest ); + m_asRequest=0; } void GSGenerator::slotAsyncPixmapGenerated(QPixmap * pix) @@ -241,6 +242,7 @@ void GSGenerator::slotAsyncPixmapGenerated(QPixmap * pix) kWarning() << "SlotASyncGenerated!\n"; m_asRequest->page()->setPixmap( m_asRequest->id(), pix ); signalRequestDone( m_asRequest ); + m_asRequest=0; docLock.unlock(); }