瀏覽代碼

r.fill.dir: remove temporary files when done (merge from trunk, https://trac.osgeo.org/grass/changeset/67527)

git-svn-id: https://svn.osgeo.org/grass/grass/branches/releasebranch_7_0@67528 15284696-431f-4ddb-bdfa-cd5b030d7da7
Anna Petrášová 9 年之前
父節點
當前提交
21f14d8f9f
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      raster/r.fill.dir/main.c

+ 4 - 0
raster/r.fill.dir/main.c

@@ -271,6 +271,10 @@ int main(int argc, char **argv)
     Rast_close(dir_id);
     close(fd);
 
+    unlink(tempfile1);
+    unlink(tempfile2);
+    unlink(tempfile3);
+
     G_free(in_buf);
     G_free(out_buf);