aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2014-06-06 15:44:17 +0300
committerEugene Sandulenko2014-06-06 15:44:17 +0300
commit8d16014292f738e8269713dc64ad23a7364cf4ad (patch)
tree4bb6eff896712688d87b99e5b57d97b0993fc62b
parent89ab5f7f63315c10574d1d30c8aba2b903c3a898 (diff)
downloadscummvm-rg350-8d16014292f738e8269713dc64ad23a7364cf4ad.tar.gz
scummvm-rg350-8d16014292f738e8269713dc64ad23a7364cf4ad.tar.bz2
scummvm-rg350-8d16014292f738e8269713dc64ad23a7364cf4ad.zip
FULLPIPE: Fix memory leak and missing results. CID 1216225
-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 66c405aab5..adfc2f7326 100644
--- a/engines/fullpipe/motion.cpp
+++ b/engines/fullpipe/motion.cpp
@@ -1518,6 +1518,8 @@ Common::Array<MovItem *> *MovGraph::calcMovItems(MovArr *movarr1, MovArr *movarr
genMovItem(r, tempObList2[i], movarr1, movarr2);
+ res->push_back(r);
+
delete tempObList2[i];
}