Fixed memory leak in script variables
This commit is contained in:
parent
3c0df2e615
commit
188d89db94
|
@ -28,6 +28,9 @@ Script::~Script() {
|
|||
delete this -> BoundScript;
|
||||
delete this -> _lastValue;
|
||||
delete this -> _evaluator;
|
||||
for (auto v : *this -> _scriptVariables){
|
||||
delete v.second;
|
||||
}
|
||||
this->_scriptVariables->clear();
|
||||
delete this->_scriptVariables;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue