diff options
author | Colin Snover | 2017-11-16 22:30:25 -0600 |
---|---|---|
committer | Eugene Sandulenko | 2017-11-18 22:35:12 +0100 |
commit | cef4d7787748fe8f0fae45d2573da4dfd4cc1c85 (patch) | |
tree | 1357d1a6175727c98ddac4c04337b40941096cdf /engines/fullpipe/motion.h | |
parent | c7b1f6b26c0276f0d9dafb8c4ec4daac268d26c6 (diff) | |
download | scummvm-rg350-cef4d7787748fe8f0fae45d2573da4dfd4cc1c85.tar.gz scummvm-rg350-cef4d7787748fe8f0fae45d2573da4dfd4cc1c85.tar.bz2 scummvm-rg350-cef4d7787748fe8f0fae45d2573da4dfd4cc1c85.zip |
FULLPIPE: Fix memory leaks of MctlItems in MctlCompound
Diffstat (limited to 'engines/fullpipe/motion.h')
-rw-r--r-- | engines/fullpipe/motion.h | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/engines/fullpipe/motion.h b/engines/fullpipe/motion.h index b47cff9a13..f71d58a38d 100644 --- a/engines/fullpipe/motion.h +++ b/engines/fullpipe/motion.h @@ -92,16 +92,13 @@ public: ~MctlItem(); }; -class MctlCompoundArray : public Common::Array<MctlItem *>, public CObject { - public: - virtual bool load(MfcArchive &file); -}; - class MctlCompound : public MotionController { public: - MctlCompoundArray _motionControllers; + /** list items are owned */ + Common::Array<MctlItem *> _motionControllers; MctlCompound() { _objtype = kObjTypeMctlCompound; } + virtual ~MctlCompound(); virtual bool load(MfcArchive &file); |