浏览代码

v.net: initialize z, sync to trunk

git-svn-id: https://svn.osgeo.org/grass/grass/branches/releasebranch_7_0@64657 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Metz 10 年之前
父节点
当前提交
c919a20067
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      vector/v.net/connect.c

+ 2 - 0
vector/v.net/connect.c

@@ -53,6 +53,7 @@ int connect_arcs(struct Map_info *In, struct Map_info *Pnts,
     
 
     /* go thorough all points in point map and write a new arcs if missing */
+    pz = 0.0;
     while ((type = Vect_read_next_line(Pnts, Points, Cats)) >= 0) {
 	if (type != GV_POINT)
 	    continue;
@@ -141,6 +142,7 @@ int connect_arcs(struct Map_info *In, struct Map_info *Pnts,
     Vect_destroy_cats_struct(Cats);
     Vect_destroy_cats_struct(Cline);
     Vect_destroy_cats_struct(Cnew);
+    Vect_destroy_list(exclude_list);
 
     return narcs;
 }