Explorar o código

lidarlib: free structs

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@71191 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Metz %!s(int64=7) %!d(string=hai) anos
pai
achega
b0ccc81df0
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      lib/lidar/zones.c

+ 3 - 0
lib/lidar/zones.c

@@ -294,6 +294,9 @@ double P_estimate_splinestep(struct Map_info *Map, double *dens, double *dist)
 	    }
 	}
     }
+    Vect_destroy_cats_struct(categories);
+    Vect_destroy_line_struct(points);
+
     if (npoints > 0) {
 	/* estimated average distance between points in map units */
 	*dist = sqrt(((xmax - xmin) * (ymax - ymin)) / npoints);