diff options
author | Mike Buland <eichlan@xagasoft.com> | 2006-07-20 20:01:18 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2006-07-20 20:01:18 +0000 |
commit | 2d0ffd6df450eb7cbc1e4dea841dcbf1ef9f9417 (patch) | |
tree | b19d072acfa6ae4c81c28599717ada143fd8340b | |
parent | 86f24cc82a3d0297e80f7c24ad624d43ba097000 (diff) | |
download | libbu++-2d0ffd6df450eb7cbc1e4dea841dcbf1ef9f9417.tar.gz libbu++-2d0ffd6df450eb7cbc1e4dea841dcbf1ef9f9417.tar.bz2 libbu++-2d0ffd6df450eb7cbc1e4dea841dcbf1ef9f9417.tar.xz libbu++-2d0ffd6df450eb7cbc1e4dea841dcbf1ef9f9417.zip |
Fixed a memory leak in the param processor.
-rw-r--r-- | src/paramproc.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/paramproc.cpp b/src/paramproc.cpp index 8317823..f44eaa3 100644 --- a/src/paramproc.cpp +++ b/src/paramproc.cpp | |||
@@ -113,6 +113,18 @@ ParamProc::ParamProc() | |||
113 | 113 | ||
114 | ParamProc::~ParamProc() | 114 | ParamProc::~ParamProc() |
115 | { | 115 | { |
116 | for( std::list<ArgSpec *>::iterator i = lArg.begin(); | ||
117 | i != lArg.end(); i++ ) | ||
118 | { | ||
119 | delete *i; | ||
120 | } | ||
121 | |||
122 | for( std::list<Banner *>::iterator i = lBan.begin(); | ||
123 | i != lBan.end(); i++ ) | ||
124 | { | ||
125 | delete *i; | ||
126 | } | ||
127 | |||
116 | } | 128 | } |
117 | /* | 129 | /* |
118 | void ParamProc::addParam( const char *lpWord, char cChar, Proc proc, ParamPtr val ) | 130 | void ParamProc::addParam( const char *lpWord, char cChar, Proc proc, ParamPtr val ) |