Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[Geometry checker] Fix memory corruption due to QgsGeometry deleting …
…the passed GeometryV2 pointer when going out of scope
  • Loading branch information
manisandro committed Oct 12, 2015
1 parent de8b045 commit 01a7674
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -323,7 +323,7 @@ void QgsGeometryCheckerResultTab::highlightErrors( bool current )
if ( ui.checkBoxHighlight->isChecked() && geometry )
{
QgsRubberBand* featureRubberBand = new QgsRubberBand( mIface->mapCanvas() );
QgsGeometry geom( geometry );
QgsGeometry geom( geometry->clone() );
featureRubberBand->addGeometry( &geom, mFeaturePool->getLayer() );
featureRubberBand->setWidth( 5 );
featureRubberBand->setColor( Qt::yellow );
Expand Down

0 comments on commit 01a7674

Please sign in to comment.