From 7232f67fe91381be359d3e46ce0ea78442033adf Mon Sep 17 00:00:00 2001 From: Colin Snover Date: Thu, 16 Nov 2017 10:34:36 -0600 Subject: FULLPIPE: Fix memory leak of graph nodes and lists --- engines/fullpipe/motion.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'engines') diff --git a/engines/fullpipe/motion.cpp b/engines/fullpipe/motion.cpp index 4f854b6304..7c46d1756c 100644 --- a/engines/fullpipe/motion.cpp +++ b/engines/fullpipe/motion.cpp @@ -171,7 +171,9 @@ void MctlCompound::initMctlGraph() { MctlGraph *newgr = new MctlGraph(); newgr->_links = gr->_links; + gr->_links.clear(); newgr->_nodes = gr->_nodes; + gr->_nodes.clear(); _motionControllers[i]->_motionControllerObj.reset(newgr); } -- cgit v1.2.3