Skip to content

Commit 01a7674

Browse files
committedOct 12, 2015
[Geometry checker] Fix memory corruption due to QgsGeometry deleting the passed GeometryV2 pointer when going out of scope
1 parent de8b045 commit 01a7674

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/plugins/geometry_checker/ui/qgsgeometrycheckerresulttab.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ void QgsGeometryCheckerResultTab::highlightErrors( bool current )
323323
if ( ui.checkBoxHighlight->isChecked() && geometry )
324324
{
325325
QgsRubberBand* featureRubberBand = new QgsRubberBand( mIface->mapCanvas() );
326-
QgsGeometry geom( geometry );
326+
QgsGeometry geom( geometry->clone() );
327327
featureRubberBand->addGeometry( &geom, mFeaturePool->getLayer() );
328328
featureRubberBand->setWidth( 5 );
329329
featureRubberBand->setColor( Qt::yellow );

0 commit comments

Comments
 (0)
Please sign in to comment.