diff options
| -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 | 
