Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix big memory leak in point locator
(cherry-picked from ce1291a)
  • Loading branch information
nyalldawson committed Jul 22, 2018
1 parent 1edf372 commit 00d3a61
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/core/qgspointlocator.cpp
Expand Up @@ -809,7 +809,6 @@ bool QgsPointLocator::rebuildIndex( int maxFeaturesToIndex )
if ( ctx && renderer )
{
renderer->stopRender( *ctx );
renderer.release();
}
return true;
}
Expand Down Expand Up @@ -861,7 +860,6 @@ void QgsPointLocator::onFeatureAdded( QgsFeatureId fid )
}

renderer->stopRender( *ctx );
renderer.release();
if ( pass )
return;
}
Expand Down

0 comments on commit 00d3a61

Please sign in to comment.