diff options
author | Colin Snover | 2017-11-16 10:34:36 -0600 |
---|---|---|
committer | Eugene Sandulenko | 2017-11-18 22:35:12 +0100 |
commit | 7232f67fe91381be359d3e46ce0ea78442033adf (patch) | |
tree | 4c66cfd71b608977e4b663a444118dd83670e7f1 /engines/fullpipe/motion.cpp | |
parent | a475cec2aab9a56e618e7858373b40b0cbda5aed (diff) | |
download | scummvm-rg350-7232f67fe91381be359d3e46ce0ea78442033adf.tar.gz scummvm-rg350-7232f67fe91381be359d3e46ce0ea78442033adf.tar.bz2 scummvm-rg350-7232f67fe91381be359d3e46ce0ea78442033adf.zip |
FULLPIPE: Fix memory leak of graph nodes and lists
Diffstat (limited to 'engines/fullpipe/motion.cpp')
-rw-r--r-- | engines/fullpipe/motion.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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); } |