aboutsummaryrefslogtreecommitdiff
path: root/engines/fullpipe/statics.cpp
diff options
context:
space:
mode:
authorEugene Sandulenko2014-05-02 12:45:42 +0300
committerEugene Sandulenko2014-05-02 12:45:42 +0300
commit28cb3e82d14a872d8b55bb192211c03af2dac7ed (patch)
tree89c8d35bf842466c1599b9a638df0f4a539f6fde /engines/fullpipe/statics.cpp
parente714dea7c773645cbb0e2aeaf1dd260888391806 (diff)
downloadscummvm-rg350-28cb3e82d14a872d8b55bb192211c03af2dac7ed.tar.gz
scummvm-rg350-28cb3e82d14a872d8b55bb192211c03af2dac7ed.tar.bz2
scummvm-rg350-28cb3e82d14a872d8b55bb192211c03af2dac7ed.zip
FULLPIPE: Implement StaticANIObject::~StaticANIObject()
Diffstat (limited to 'engines/fullpipe/statics.cpp')
-rw-r--r--engines/fullpipe/statics.cpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/engines/fullpipe/statics.cpp b/engines/fullpipe/statics.cpp
index e31267fda9..d15da94ab1 100644
--- a/engines/fullpipe/statics.cpp
+++ b/engines/fullpipe/statics.cpp
@@ -141,7 +141,17 @@ StaticANIObject::StaticANIObject() {
}
StaticANIObject::~StaticANIObject() {
- warning("STUB: StaticANIObject::~StaticANIObject()");
+ for (uint i = 0; i < _staticsList.size(); i++)
+ delete _staticsList[i];
+
+ _staticsList.clear();
+
+ for (uint i = 0; i < _movements.size(); i++)
+ delete _movements[i];
+
+ _movements.clear();
+
+ g_fp->_mgm->clear();
}
StaticANIObject::StaticANIObject(StaticANIObject *src) : GameObject(src) {