From 2d0ffd6df450eb7cbc1e4dea841dcbf1ef9f9417 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Thu, 20 Jul 2006 20:01:18 +0000 Subject: Fixed a memory leak in the param processor. --- src/paramproc.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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() ParamProc::~ParamProc() { + for( std::list::iterator i = lArg.begin(); + i != lArg.end(); i++ ) + { + delete *i; + } + + for( std::list::iterator i = lBan.begin(); + i != lBan.end(); i++ ) + { + delete *i; + } + } /* void ParamProc::addParam( const char *lpWord, char cChar, Proc proc, ParamPtr val ) -- cgit v1.2.3