Skip to content

Commit

Permalink
Fixed|libcore|Scripting: Memory leak in expression evaluator
Browse files Browse the repository at this point in the history
The scopes for the evaluated results were not always deleted.
  • Loading branch information
skyjake committed Oct 31, 2014
1 parent 8f56388 commit cbfb157
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions doomsday/libcore/src/scriptsys/evaluator.cpp
Expand Up @@ -90,6 +90,7 @@ DENG2_PIMPL(Evaluator)
foreach(ScopedResult const &i, results)
{
delete i.result;
delete i.scope;
}
results.clear();
}
Expand Down

0 comments on commit cbfb157

Please sign in to comment.