diff options
author | Eugene Sandulenko | 2013-12-15 02:46:22 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2013-12-15 02:46:53 +0200 |
commit | 9aaa7d742fa2d33e8f87d12828dd1d0248e19854 (patch) | |
tree | 7bd1590dc66e7cd35192fe4b59602defa64a72b9 | |
parent | ef5a7eeec7934c6e28d7c0f8afefc5df9559aa09 (diff) | |
download | scummvm-rg350-9aaa7d742fa2d33e8f87d12828dd1d0248e19854.tar.gz scummvm-rg350-9aaa7d742fa2d33e8f87d12828dd1d0248e19854.tar.bz2 scummvm-rg350-9aaa7d742fa2d33e8f87d12828dd1d0248e19854.zip |
FULLPIPE: Implemented several destructors
-rw-r--r-- | engines/fullpipe/motion.cpp | 20 | ||||
-rw-r--r-- | engines/fullpipe/motion.h | 4 |
2 files changed, 24 insertions, 0 deletions
diff --git a/engines/fullpipe/motion.cpp b/engines/fullpipe/motion.cpp index 9bacfec0e2..0aa6a4ace6 100644 --- a/engines/fullpipe/motion.cpp +++ b/engines/fullpipe/motion.cpp @@ -185,6 +185,11 @@ MessageQueue *MctlCompound::doWalkTo(StaticANIObject *subj, int xpos, int ypos, return mq; } +MctlCompoundArrayItem::~MctlCompoundArrayItem() { + delete _movGraphReactObj; + delete _motionControllerObj; +} + MctlLadder::MctlLadder() { _width = 0; _ladderX = 0; @@ -319,6 +324,21 @@ MctlConnectionPoint *MctlCompound::findClosestConnectionPoint(int ox, int oy, in return 0; } +MctlConnectionPoint::MctlConnectionPoint() { + _connectionX = 0; + _connectionY = 0; + _field_C = 0; + _field_10 = 0; + _field_14 = 0; + _field_16 = 0; + _messageQueueObj = 0; + _motionControllerObj = 0; +} + +MctlConnectionPoint::~MctlConnectionPoint() { + delete _messageQueueObj; +} + bool MctlCompoundArray::load(MfcArchive &file) { debug(5, "MctlCompoundArray::load()"); diff --git a/engines/fullpipe/motion.h b/engines/fullpipe/motion.h index 7d35c3f8c1..c54ba7147b 100644 --- a/engines/fullpipe/motion.h +++ b/engines/fullpipe/motion.h @@ -86,6 +86,7 @@ public: public: MctlCompoundArrayItem() : _movGraphReactObj(0), _motionControllerObj(0), _field_20(0), _field_24(0), _field_28(0) {} + ~MctlCompoundArrayItem(); }; class MctlCompoundArray : public Common::Array<MctlCompoundArrayItem *>, public CObject { @@ -413,6 +414,9 @@ public: int16 _field_16; MessageQueue *_messageQueueObj; int _motionControllerObj; + + MctlConnectionPoint(); + ~MctlConnectionPoint(); }; } // End of namespace Fullpipe |