Skip to content
Permalink
Browse files

Fix deletion of QObject from non main thread

  • Loading branch information
nyalldawson committed Jun 30, 2017
1 parent 45538df commit 233a861151f0036362a9dbcca5ae8386f0fd544b
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/core/qgsmaprenderertask.cpp
@@ -145,8 +145,6 @@ bool QgsMapRendererTask::run()
annotation->render( context );
context.painter()->restore();
}
qDeleteAll( mAnnotations );
mAnnotations.clear();

if ( !mFileName.isEmpty() )
{
@@ -181,6 +179,9 @@ bool QgsMapRendererTask::run()

void QgsMapRendererTask::finished( bool result )
{
qDeleteAll( mAnnotations );
mAnnotations.clear();

if ( result )
emit renderingComplete();
else

0 comments on commit 233a861

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