Skip to content

Commit

Permalink
Fix big memory leak in point locator
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Jul 21, 2018
1 parent c7e914c commit ce1291a
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/core/qgspointlocator.cpp
Original file line number Diff line number Diff line change
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 ce1291a

Please sign in to comment.