Skip to content
Permalink
Browse files

Fix potential crash on destroying QgsMapCanvas

If an active job is rendering when a map canvas is destroyed
then the canvas can crash
  • Loading branch information
nyalldawson committed Mar 8, 2017
1 parent 3f1cd69 commit 3210fcc14f4b0ef62eafe5e49ea756c54c26e450
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/gui/qgsmapcanvas.cpp
@@ -213,8 +213,8 @@ QgsMapCanvas::~QgsMapCanvas()

if ( mJob )
{
mJob->cancel();
Q_ASSERT( !mJob );
whileBlocking( mJob )->cancel();
delete mJob;
}

delete mCache;

0 comments on commit 3210fcc

Please sign in to comment.
You can’t perform that action at this time.