浏览代码

lidarlib: free structs

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@71191 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Metz 7 年之前
父节点
当前提交
b0ccc81df0
共有 1 个文件被更改,包括 3 次插入0 次删除
  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);