git » fp-git.git » commit ac8d01e

Added a cfgDstr method

author unlord
2004-07-07 14:38:56 UTC
committer unlord
2004-07-07 14:38:56 UTC
parent 9cdf9db99e43d6cf5f91a0b95cdc719eb1504cd5

Added a cfgDstr method

stuff/ideas/FPConfig.c +5 -0
stuff/ideas/FPConfig.h +1 -0

diff --git a/stuff/ideas/FPConfig.c b/stuff/ideas/FPConfig.c
index da6d628..3b21feb 100644
--- a/stuff/ideas/FPConfig.c
+++ b/stuff/ideas/FPConfig.c
@@ -9,3 +9,8 @@ int cfgInit(FPConfig *_this,char *_pop1_path) {
   strcpy(_this->pop1_path,_pop1_path);
   return(1);
 }
+
+void cfgDstr(FPConfig *_this) {
+  free(_this->pop1_path);
+  _this->pop1_path=NULL;
+}
diff --git a/stuff/ideas/FPConfig.h b/stuff/ideas/FPConfig.h
index 128dbfa..55abeda 100644
--- a/stuff/ideas/FPConfig.h
+++ b/stuff/ideas/FPConfig.h
@@ -8,5 +8,6 @@ struct FPConfig {
 };
 
 int cfgInit(FPConfig *_this,char *_pop1_path);
+void cfgDstr(FPConfig *_this);
 
 #endif