aboutsummaryrefslogtreecommitdiff
path: root/engines/fullpipe
diff options
context:
space:
mode:
authorEugene Sandulenko2016-05-15 13:07:23 +0200
committerEugene Sandulenko2016-05-15 13:07:23 +0200
commit7526cf82f2279698aecb48aacc97849bed3d410b (patch)
tree07530cdff57ef0ac35b41de283be772d02f1a1b2 /engines/fullpipe
parent6858dbe2c283615f358af3be357aca452e34cf39 (diff)
downloadscummvm-rg350-7526cf82f2279698aecb48aacc97849bed3d410b.tar.gz
scummvm-rg350-7526cf82f2279698aecb48aacc97849bed3d410b.tar.bz2
scummvm-rg350-7526cf82f2279698aecb48aacc97849bed3d410b.zip
FULLPIPE: Plug memory leak
Diffstat (limited to 'engines/fullpipe')
-rw-r--r--engines/fullpipe/motion.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/fullpipe/motion.cpp b/engines/fullpipe/motion.cpp
index 1a61cb742a..9cf18f3cc2 100644
--- a/engines/fullpipe/motion.cpp
+++ b/engines/fullpipe/motion.cpp
@@ -855,9 +855,9 @@ Common::Array<MovItem *> *MovGraph::getPaths(StaticANIObject *ani, int x, int y,
if (sz > 0) {
for (int j = 0; j < sz; j++)
_items[idx]->movitems->push_back(movitems[j]);
-
- delete movitems;
}
+
+ delete movitems;
}
delete movarr;