Delete cParseRules when we're done with them. I think this is the last real valgrind issue.

This commit is contained in:
Brian Cox 2017-08-27 17:22:31 -07:00
parent 3481d2622a
commit b3b74fd76e
2 changed files with 11 additions and 0 deletions

View File

@ -75,6 +75,16 @@ cGenreParseInfo::cGenreParseInfo()
InitPredefinedVariables();
}
cGenreParseInfo::~cGenreParseInfo()
{
RuleListType::iterator itr;
for( itr = mRuleList.begin(); itr != mRuleList.end(); ++itr )
{
delete *itr;
}
}
///////////////////////////////////////////////////////////////////////////////
// AddStopPoint

View File

@ -80,6 +80,7 @@ class cGenreParseInfo
{
public:
cGenreParseInfo();
~cGenreParseInfo();
void AddStopPoint( const cFCOName& name );
// adds the specified path as a stop point -- for now, we just queue it up,