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

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Feb 5 06:04:23 PST 2013


Author: mmetz
Date: 2013-02-05 06:04:23 -0800 (Tue, 05 Feb 2013)
New Revision: 54929

Modified:
   grass/trunk/lib/vector/Vlib/close.c
Log:
Vlib: restore release support

Modified: grass/trunk/lib/vector/Vlib/close.c
===================================================================
--- grass/trunk/lib/vector/Vlib/close.c	2013-02-05 14:03:50 UTC (rev 54928)
+++ grass/trunk/lib/vector/Vlib/close.c	2013-02-05 14:04:23 UTC (rev 54929)
@@ -171,15 +171,13 @@
 
 	fclose(Map->plus.spidx_fp.file);
     }
-    /* always needed to close tmp files
-     * TODO: do better */
-    G_debug(1, "free spatial index");
-    dig_spidx_free(&(Map->plus));
-
     if (Map->level > 1 && Map->plus.release_support) {
 	G_debug(1, "free topology");
 	dig_free_plus(&(Map->plus));
 
+	G_debug(1, "free spatial index");
+	dig_spidx_free(&(Map->plus));
+
 	G_debug(1, "free category index");
 	dig_cidx_free(&(Map->plus));
     }



More information about the grass-commit mailing list