Browse Source

diglib: simplify init/free of support structures

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@54934 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Metz 12 years ago
parent
commit
548a5dd16e
1 changed files with 2 additions and 0 deletions
  1. 2 0
      lib/vector/diglib/plus.c

+ 2 - 0
lib/vector/diglib/plus.c

@@ -234,6 +234,7 @@ void dig_free_plus(struct Plus_head *Plus)
     dig_free_plus_areas(Plus);
     dig_free_plus_isles(Plus);
 
+    dig_spidx_free(Plus);
     dig_cidx_free(Plus);
 }
 
@@ -258,6 +259,7 @@ int dig_load_plus(struct Plus_head *Plus, struct gvfile * plus, int head_only)
      */
 
     /* free and init old */
+    dig_free_plus(Plus);
     dig_init_plus(Plus);
 
     /* Now let's begin reading the Plus file nodes, lines, areas and isles */