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
Showing with 3 additions and 3 deletions.
  1. +1 −1 python/core/geometry/qgsgeometry.sip
  2. +1 −1 src/app/qgsmaptooladdfeature.cpp
  3. +1 −1 src/core/geometry/qgsgeometry.h
@@ -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.
You can’t perform that action at this time.