summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2006-07-20 20:01:18 +0000
committerMike Buland <eichlan@xagasoft.com>2006-07-20 20:01:18 +0000
commit2d0ffd6df450eb7cbc1e4dea841dcbf1ef9f9417 (patch)
treeb19d072acfa6ae4c81c28599717ada143fd8340b /src
parent86f24cc82a3d0297e80f7c24ad624d43ba097000 (diff)
downloadlibbu++-2d0ffd6df450eb7cbc1e4dea841dcbf1ef9f9417.tar.gz
libbu++-2d0ffd6df450eb7cbc1e4dea841dcbf1ef9f9417.tar.bz2
libbu++-2d0ffd6df450eb7cbc1e4dea841dcbf1ef9f9417.tar.xz
libbu++-2d0ffd6df450eb7cbc1e4dea841dcbf1ef9f9417.zip
Fixed a memory leak in the param processor.
Diffstat (limited to 'src')
-rw-r--r--src/paramproc.cpp12
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
114ParamProc::~ParamProc() 114ParamProc::~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/*
118void ParamProc::addParam( const char *lpWord, char cChar, Proc proc, ParamPtr val ) 130void ParamProc::addParam( const char *lpWord, char cChar, Proc proc, ParamPtr val )