[GRASS-SVN] r44458 - grass/trunk/lib/vector/Vlib
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Nov 28 11:21:31 EST 2010
Author: mmetz
Date: 2010-11-28 08:21:31 -0800 (Sun, 28 Nov 2010)
New Revision: 44458
Modified:
grass/trunk/lib/vector/Vlib/break_polygons.c
Log:
release memory, add debug info
Modified: grass/trunk/lib/vector/Vlib/break_polygons.c
===================================================================
--- grass/trunk/lib/vector/Vlib/break_polygons.c 2010-11-28 16:16:29 UTC (rev 44457)
+++ grass/trunk/lib/vector/Vlib/break_polygons.c 2010-11-28 16:21:31 UTC (rev 44458)
@@ -240,10 +240,9 @@
}
}
- /* G_sleep (10); */
-
nbreaks = 0;
nallpoints = 0;
+ G_debug(2, "Break polygons: unique vertices: %d", RBTree->count);
/* uncomment to check if search tree is healthy */
/* if (rbtree_debug(RBTree, RBTree->root) == 0)
@@ -346,5 +345,9 @@
}
rbtree_destroy(RBTree);
+ Vect_destroy_line_struct(Points);
+ Vect_destroy_line_struct(BPoints);
+ Vect_destroy_cats_struct(Cats);
+ Vect_destroy_cats_struct(ErrCats);
G_verbose_message(_("Breaks: %d"), nbreaks);
}
More information about the grass-commit
mailing list