aboutsummaryrefslogtreecommitdiff
path: root/engines/fullpipe/motion.cpp
diff options
context:
space:
mode:
authorEugene Sandulenko2016-12-12 23:35:32 +0100
committerEugene Sandulenko2016-12-12 23:35:32 +0100
commitc5e55878ad68b26babcc5ca654cf39488df102ec (patch)
tree59820d055865df908793a241460937e8d6a77ad7 /engines/fullpipe/motion.cpp
parent9075cbc1ba9d01833e9ec94d53eba5cdd81abed2 (diff)
downloadscummvm-rg350-c5e55878ad68b26babcc5ca654cf39488df102ec.tar.gz
scummvm-rg350-c5e55878ad68b26babcc5ca654cf39488df102ec.tar.bz2
scummvm-rg350-c5e55878ad68b26babcc5ca654cf39488df102ec.zip
FULLPIPE: Plug more memory leaks
Diffstat (limited to 'engines/fullpipe/motion.cpp')
-rw-r--r--engines/fullpipe/motion.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/engines/fullpipe/motion.cpp b/engines/fullpipe/motion.cpp
index 05f13d4a8b..13fe8d03c1 100644
--- a/engines/fullpipe/motion.cpp
+++ b/engines/fullpipe/motion.cpp
@@ -105,6 +105,11 @@ MovGraphLink *MotionController::getLinkByName(const char *name) {
return 0;
}
+MctlCompound::~MctlCompound() {
+ for (uint i = 0; i < _motionControllers.size(); i++)
+ delete _motionControllers[i];
+}
+
bool MctlCompound::load(MfcArchive &file) {
debugC(5, kDebugLoading, "MctlCompound::load()");