Skip to content
Permalink
Browse files

[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 01a7674f1ca8dd11103eeffea9d128f9de8d8341
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/plugins/geometry_checker/ui/qgsgeometrycheckerresulttab.cpp
@@ -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 );

0 comments on commit 01a7674

Please sign in to comment.
You can’t perform that action at this time.