aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorColin Snover2017-11-16 10:34:36 -0600
committerEugene Sandulenko2017-11-18 22:35:12 +0100
commit7232f67fe91381be359d3e46ce0ea78442033adf (patch)
tree4c66cfd71b608977e4b663a444118dd83670e7f1 /engines
parenta475cec2aab9a56e618e7858373b40b0cbda5aed (diff)
downloadscummvm-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')
-rw-r--r--engines/fullpipe/motion.cpp2
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);
}