Skip to content
Permalink
Browse files
Fix leak in add map tool
  • Loading branch information
nyalldawson committed Sep 1, 2015
1 parent 2904689 commit 8ce9930f4a06379bc5d22237aeec99e501b0eb6d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
@@ -47,7 +47,7 @@ class QgsGeometry
* geom is transferred.
* @note added in QGIS 2.10
*/
QgsGeometry( QgsAbstractGeometryV2* geom /Transfer/ );
explicit QgsGeometry( QgsAbstractGeometryV2* geom /Transfer/ );

//! Destructor
~QgsGeometry();
@@ -241,7 +241,7 @@ void QgsMapToolAddFeature::canvasMapReleaseEvent( QgsMapMouseEvent* e )
poly = new QgsPolygonV2();
}
poly->setExteriorRing( curveToAdd );
f->setGeometry( poly );
f->setGeometry( new QgsGeometry( poly ) );

int avoidIntersectionsReturn = f->geometry()->avoidIntersections();
if ( avoidIntersectionsReturn == 1 )
@@ -90,7 +90,7 @@ class CORE_EXPORT QgsGeometry
* geom is transferred.
* @note added in QGIS 2.10
*/
QgsGeometry( QgsAbstractGeometryV2* geom );
explicit QgsGeometry( QgsAbstractGeometryV2* geom );

//! Destructor
~QgsGeometry();

0 comments on commit 8ce9930

Please sign in to comment.