aboutsummaryrefslogtreecommitdiff
path: root/engines/fullpipe
diff options
context:
space:
mode:
authorEugene Sandulenko2014-05-26 08:53:03 +0300
committerEugene Sandulenko2014-05-26 08:53:03 +0300
commit2cc7a8184627415129f37eba02ad66f04cc4b20e (patch)
tree74649f243e04adedc6a2cecc95ab4fd2eabfeed1 /engines/fullpipe
parent82f4e71d5604202ef364fb225f0dc7b527bd39c2 (diff)
downloadscummvm-rg350-2cc7a8184627415129f37eba02ad66f04cc4b20e.tar.gz
scummvm-rg350-2cc7a8184627415129f37eba02ad66f04cc4b20e.tar.bz2
scummvm-rg350-2cc7a8184627415129f37eba02ad66f04cc4b20e.zip
FULLPIPE: Implement MovGraphItem::free()
Diffstat (limited to 'engines/fullpipe')
-rw-r--r--engines/fullpipe/motion.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/engines/fullpipe/motion.cpp b/engines/fullpipe/motion.cpp
index 9f34c8fab8..79bb02638c 100644
--- a/engines/fullpipe/motion.cpp
+++ b/engines/fullpipe/motion.cpp
@@ -516,7 +516,14 @@ MovGraphItem::MovGraphItem() {
}
void MovGraphItem::free() {
- warning("STUB: MovGraphItem::free()");
+ for (uint i = 0; i < movitems->size(); i++) {
+ (*movitems)[i]->movarr->_movSteps.clear();
+ delete (*movitems)[i]->movarr;
+ }
+
+ delete movitems;
+
+ movitems = 0;
}
int MovGraph_messageHandler(ExCommand *cmd);