Skip to content
Permalink
Browse files

Fix memory leak in canvas preview images

  • Loading branch information
nyalldawson committed Jul 20, 2017
1 parent 74407dc commit 9ab4184af260f9f8025172da993db2dfd7dc39a1
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/gui/qgsmapcanvas.cpp
@@ -648,6 +648,8 @@ void QgsMapCanvas::previewJobFinished()
if ( mMap )
{
mMap->addPreviewImage( job->renderedImage(), job->mapSettings().extent() );
mPreviewJobs.removeAll( job );
delete job;
}
}

0 comments on commit 9ab4184

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