Skip to content

Commit

Permalink
Fix a silly memory leak, that was introduced in r5569's QgsGeometry::…
Browse files Browse the repository at this point in the history
…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 57b9c34
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/core/qgsgeometry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}


Expand Down

0 comments on commit 57b9c34

Please sign in to comment.