[Liblas-commits] r1088 - in trunk: include/liblas/capi src

liblas-commits at liblas.org liblas-commits at liblas.org
Sun Mar 8 16:10:47 EDT 2009


Author: hobu
Date: Sun Mar  8 16:10:47 2009
New Revision: 1088
URL: http://liblas.org/changeset/1088

Log:
fix #101, LASString_Free

Modified:
   trunk/include/liblas/capi/liblas.h
   trunk/src/las_c_api.cpp

Modified: trunk/include/liblas/capi/liblas.h
==============================================================================
--- trunk/include/liblas/capi/liblas.h	(original)
+++ trunk/include/liblas/capi/liblas.h	Sun Mar  8 16:10:47 2009
@@ -1074,6 +1074,13 @@
 LAS_DLL LASError LASHeader_SetSRS(LASHeaderH hHeader, const LASSRSH hSRS);
 LAS_DLL void LASSRS_Destroy(LASSRSH hSRS);
 
+
+/** Method to ensure that you are freeing char*'s from the 
+ *  correct heap.
+ *  @param string the string to free
+*/
+LAS_DLL void LASString_Free(char* string);
+
 LAS_C_END
 #endif
 

Modified: trunk/src/las_c_api.cpp
==============================================================================
--- trunk/src/las_c_api.cpp	(original)
+++ trunk/src/las_c_api.cpp	Sun Mar  8 16:10:47 2009
@@ -1774,6 +1774,11 @@
 }
 
 
+LAS_DLL void LASString_Free(char* string) {
+    
+    free(string);
+}
+
 LAS_C_END
 
 #ifdef _MSC_VER


More information about the Liblas-commits mailing list