Skip to content

Commit 57b9c34

Browse files
author
morb_au
committedJul 13, 2006
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
1 parent 4a03bd0 commit 57b9c34

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎src/core/qgsgeometry.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2096,9 +2096,11 @@ bool QgsGeometry::contains(QgsPoint* p) const
20962096

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

2099-
return mGeos->contains(geosPoint);
2099+
returnval = mGeos->contains(geosPoint);
21002100

21012101
delete geosPoint;
2102+
2103+
return returnval;
21022104
}
21032105

21042106

0 commit comments

Comments
 (0)