diff options
author | Eugene Sandulenko | 2016-11-30 20:08:12 +0100 |
---|---|---|
committer | Eugene Sandulenko | 2016-11-30 20:36:46 +0100 |
commit | 80d86745cf21a25463d4d94e90ea264ebbd56d22 (patch) | |
tree | c694b2f88f90a0ea49e3413998dc0c3dcf6d81c8 | |
parent | 6071d1b05ce453c9723452fb858bb66c30c8f24f (diff) | |
download | scummvm-rg350-80d86745cf21a25463d4d94e90ea264ebbd56d22.tar.gz scummvm-rg350-80d86745cf21a25463d4d94e90ea264ebbd56d22.tar.bz2 scummvm-rg350-80d86745cf21a25463d4d94e90ea264ebbd56d22.zip |
FULLPIPE: Implement MovGraph destructor
-rw-r--r-- | engines/fullpipe/motion.cpp | 8 |
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) { |