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/qgis@5590 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
morb_au committed Jul 13, 2006
1 parent aee8d73 commit ae747bf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/core/qgsgeometry.cpp
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 ae747bf

Please sign in to comment.