[GRASS-SVN] r41311 - in
grass/branches/releasebranch_6_4/gui/wxpython: nviz vdigit
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Mar 6 14:02:17 EST 2010
Author: martinl
Date: 2010-03-06 14:02:16 -0500 (Sat, 06 Mar 2010)
New Revision: 41311
Modified:
grass/branches/releasebranch_6_4/gui/wxpython/nviz/init.cpp
grass/branches/releasebranch_6_4/gui/wxpython/nviz/surface.cpp
grass/branches/releasebranch_6_4/gui/wxpython/vdigit/driver_draw.cpp
grass/branches/releasebranch_6_4/gui/wxpython/vdigit/line.cpp
Log:
set variable to NULL after freeing
Modified: grass/branches/releasebranch_6_4/gui/wxpython/nviz/init.cpp
===================================================================
--- grass/branches/releasebranch_6_4/gui/wxpython/nviz/init.cpp 2010-03-06 18:36:55 UTC (rev 41310)
+++ grass/branches/releasebranch_6_4/gui/wxpython/nviz/init.cpp 2010-03-06 19:02:16 UTC (rev 41311)
@@ -187,6 +187,7 @@
PyFile_WriteString(sentence, pyFd);
G_free((void *)sentence);
+ sentence = NULL;
PyFile_WriteString("\n", pyFd);
start = next;
Modified: grass/branches/releasebranch_6_4/gui/wxpython/nviz/surface.cpp
===================================================================
--- grass/branches/releasebranch_6_4/gui/wxpython/nviz/surface.cpp 2010-03-06 18:36:55 UTC (rev 41310)
+++ grass/branches/releasebranch_6_4/gui/wxpython/nviz/surface.cpp 2010-03-06 19:02:16 UTC (rev 41311)
@@ -346,6 +346,7 @@
}
G_free(surf_list);
+ surf_list = NULL;
}
return 1;
Modified: grass/branches/releasebranch_6_4/gui/wxpython/vdigit/driver_draw.cpp
===================================================================
--- grass/branches/releasebranch_6_4/gui/wxpython/vdigit/driver_draw.cpp 2010-03-06 18:36:55 UTC (rev 41310)
+++ grass/branches/releasebranch_6_4/gui/wxpython/vdigit/driver_draw.cpp 2010-03-06 19:02:16 UTC (rev 41311)
@@ -150,6 +150,7 @@
isles[j] = NULL;
}
G_free((void *) isles);
+ isles = NULL;
}
}
}
Modified: grass/branches/releasebranch_6_4/gui/wxpython/vdigit/line.cpp
===================================================================
--- grass/branches/releasebranch_6_4/gui/wxpython/vdigit/line.cpp 2010-03-06 18:36:55 UTC (rev 41310)
+++ grass/branches/releasebranch_6_4/gui/wxpython/vdigit/line.cpp 2010-03-06 19:02:16 UTC (rev 41311)
@@ -798,6 +798,7 @@
if (bgMap) {
Vect_close(bgMap);
G_free ((void *) bgMap);
+ bgMap = NULL;
}
return ret;
More information about the grass-commit
mailing list