Skip to content
Permalink
Browse files
Fix a silly memory leak, that was introduced in r5569's QgsGeometry::…
…contains() function.

git-svn-id: http://svn.osgeo.org/qgis/trunk@5590 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
morb_au committed Jul 13, 2006
1 parent 4a03bd0 commit 57b9c34cd004d80343c09367659e93e860d63be9
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/core/qgsgeometry.cpp
@@ -2096,9 +2096,11 @@ bool QgsGeometry::contains(QgsPoint* p) const

geos::Point* geosPoint = geosGeometryFactory->createPoint(geos::Coordinate(p->x(), p->y()));

return mGeos->contains(geosPoint);
returnval = mGeos->contains(geosPoint);

delete geosPoint;

return returnval;
}


0 comments on commit 57b9c34

Please sign in to comment.