remove unecessary parenting of Agent script engine

This commit is contained in:
Stephen Birarda 2017-12-15 17:17:27 -08:00
parent 0e72197a37
commit c90cdf52b4

View file

@ -343,7 +343,6 @@ void Agent::scriptRequestFinished() {
void Agent::executeScript() {
_scriptEngine = scriptEngineFactory(ScriptEngine::AGENT_SCRIPT, _scriptContents, _payload);
_scriptEngine->setParent(this); // be the parent of the script engine so it gets moved when we do
DependencyManager::get<RecordingScriptingInterface>()->setScriptEngine(_scriptEngine);