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 -> BoundScript;
|
||||||
delete this -> _lastValue;
|
delete this -> _lastValue;
|
||||||
delete this -> _evaluator;
|
delete this -> _evaluator;
|
||||||
|
for (auto v : *this -> _scriptVariables){
|
||||||
|
delete v.second;
|
||||||
|
}
|
||||||
this->_scriptVariables->clear();
|
this->_scriptVariables->clear();
|
||||||
delete this->_scriptVariables;
|
delete this->_scriptVariables;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue