Fixed memory leak in script variables
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user