[geos-commits] r2904 - trunk/capi

svn_geos at osgeo.org svn_geos at osgeo.org
Fri Feb 5 09:54:48 EST 2010


Author: strk
Date: 2010-02-05 09:54:47 -0500 (Fri, 05 Feb 2010)
New Revision: 2904

Modified:
   trunk/capi/geos_c.h.in
Log:
Document ownership of created types


Modified: trunk/capi/geos_c.h.in
===================================================================
--- trunk/capi/geos_c.h.in	2010-02-05 14:39:27 UTC (rev 2903)
+++ trunk/capi/geos_c.h.in	2010-02-05 14:54:47 UTC (rev 2904)
@@ -684,6 +684,8 @@
 extern char GEOS_DLL GEOSisEmpty(const GEOSGeometry* g1);
 extern char GEOS_DLL GEOSisValid(const GEOSGeometry* g1);
 extern char GEOS_DLL *GEOSisValidReason(const GEOSGeometry *g1);
+/* caller has the responsibility to destroy 'reason' (GEOSFree)
+ * and 'location' (GEOSGeom_destroy) Sparams */
 extern char GEOS_DLL GEOSisValidDetail(const GEOSGeometry* g, char** reason,
                                          const GEOSGeometry** location);
 extern char GEOS_DLL GEOSisSimple(const GEOSGeometry* g1);
@@ -696,6 +698,8 @@
                                    const GEOSGeometry* g1);
 extern char GEOS_DLL *GEOSisValidReason_r(GEOSContextHandle_t handle,
                                          const GEOSGeometry* g1);
+/* caller has the responsibility to destroy 'reason' (GEOSFree_r)
+ * and 'location' (GEOSGeom_destroy_r) Sparams */
 extern char GEOS_DLL GEOSisValidDetail_r(GEOSContextHandle_t handle,
                                          const GEOSGeometry* g, char** reason,
                                          const GEOSGeometry** location);



More information about the geos-commits mailing list