[GRASS-SVN] r53627 - grass/trunk/lib/vector/Vlib

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Oct 31 12:55:18 PDT 2012


Author: mmetz
Date: 2012-10-31 12:55:18 -0700 (Wed, 31 Oct 2012)
New Revision: 53627

Modified:
   grass/trunk/lib/vector/Vlib/merge_lines.c
Log:
Vlib: release memory in Vect_merge_lines()

Modified: grass/trunk/lib/vector/Vlib/merge_lines.c
===================================================================
--- grass/trunk/lib/vector/Vlib/merge_lines.c	2012-10-31 19:50:11 UTC (rev 53626)
+++ grass/trunk/lib/vector/Vlib/merge_lines.c	2012-10-31 19:55:18 UTC (rev 53627)
@@ -249,5 +249,11 @@
     if (new_lines)
 	*new_lines = newl;
 
+    Vect_destroy_line_struct(Points);
+    Vect_destroy_cats_struct(Cats);
+    Vect_destroy_line_struct(MPoints);
+    Vect_destroy_cats_struct(MCats);
+    Vect_destroy_list(List);
+
     return merged;
 }



More information about the grass-commit mailing list