Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Fix memory leak in canvas preview images
- Loading branch information
Showing
with
2 additions
and
0 deletions.
-
+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; |
|
|
} |
|
|
} |
|
|
|
|
|