Fix minor memory leak in the config parser

This commit is contained in:
Gunnar Beutner 2014-12-06 10:23:25 +01:00
parent d60211d693
commit 3cb2afd454
1 changed files with 6 additions and 0 deletions

View File

@ -646,6 +646,12 @@ public:
: DebuggableExpression(debugInfo), m_Indexer(indexer)
{ }
~IndexerExpression(void)
{
BOOST_FOREACH(Expression *expr, m_Indexer)
delete expr;
}
protected:
virtual Value DoEvaluate(VMFrame& frame, DebugHint *dhint) const;