don't keep pointers to requests done that have been deleted

svn path=/trunk/playground/graphics/okular/; revision=606532
remotes/origin/KDE/4.0
Pino Toscano 20 years ago
parent 2a87f65ad4
commit aeab3273cf
  1. 2
      generators/ghostview/generator_ghostview.cpp

@ -234,6 +234,7 @@ void GSGenerator::slotPixmapGenerated(const QImage* img)
syncLock.unlock(); syncLock.unlock();
m_sRequest->page()->setPixmap( m_sRequest->id(), new QPixmap( QPixmap::fromImage( *img ) ) ); m_sRequest->page()->setPixmap( m_sRequest->id(), new QPixmap( QPixmap::fromImage( *img ) ) );
signalRequestDone( m_sRequest ); signalRequestDone( m_sRequest );
m_asRequest=0;
} }
void GSGenerator::slotAsyncPixmapGenerated(QPixmap * pix) void GSGenerator::slotAsyncPixmapGenerated(QPixmap * pix)
@ -241,6 +242,7 @@ void GSGenerator::slotAsyncPixmapGenerated(QPixmap * pix)
kWarning() << "SlotASyncGenerated!\n"; kWarning() << "SlotASyncGenerated!\n";
m_asRequest->page()->setPixmap( m_asRequest->id(), pix ); m_asRequest->page()->setPixmap( m_asRequest->id(), pix );
signalRequestDone( m_asRequest ); signalRequestDone( m_asRequest );
m_asRequest=0;
docLock.unlock(); docLock.unlock();
} }

Loading…
Cancel
Save