Merge pull request #12003 from birarda/bug/double-free-in-agent

remove unecessary parenting of Agent script engine
This commit is contained in:
Stephen Birarda 2018-01-18 11:33:17 -07:00 committed by GitHub
commit 95d0e8aa56
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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);