瀏覽代碼

Clear array pointer after deallocation

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@44380 15284696-431f-4ddb-bdfa-cd5b030d7da7
Glynn Clements 14 年之前
父節點
當前提交
98249e1815
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      lib/raster/history.c

+ 1 - 0
lib/raster/history.c

@@ -310,6 +310,7 @@ void Rast_clear_history(struct History *hist)
     if (hist->lines)
 	G_free(hist->lines);
 
+    hist->lines = NULL;
     hist->nlines = 0;
 }