aboutsummaryrefslogtreecommitdiff
path: root/engines/fullpipe
diff options
context:
space:
mode:
authorEugene Sandulenko2016-11-30 20:08:12 +0100
committerEugene Sandulenko2016-11-30 20:36:46 +0100
commit80d86745cf21a25463d4d94e90ea264ebbd56d22 (patch)
treec694b2f88f90a0ea49e3413998dc0c3dcf6d81c8 /engines/fullpipe
parent6071d1b05ce453c9723452fb858bb66c30c8f24f (diff)
downloadscummvm-rg350-80d86745cf21a25463d4d94e90ea264ebbd56d22.tar.gz
scummvm-rg350-80d86745cf21a25463d4d94e90ea264ebbd56d22.tar.bz2
scummvm-rg350-80d86745cf21a25463d4d94e90ea264ebbd56d22.zip
FULLPIPE: Implement MovGraph destructor
Diffstat (limited to 'engines/fullpipe')
-rw-r--r--engines/fullpipe/motion.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/engines/fullpipe/motion.cpp b/engines/fullpipe/motion.cpp
index e5eb9721f4..68bfb1332e 100644
--- a/engines/fullpipe/motion.cpp
+++ b/engines/fullpipe/motion.cpp
@@ -815,7 +815,13 @@ MovGraph::MovGraph() {
}
MovGraph::~MovGraph() {
- warning("STUB: MovGraph::~MovGraph()");
+ for (ObList::iterator i = _links.begin(); i != _links.end(); ++i)
+ delete *i;
+
+ for (ObList::iterator i = _nodes.begin(); i != _nodes.end(); ++i)
+ delete *i;
+
+ detachAllObjects();
}
bool MovGraph::load(MfcArchive &file) {