diff options
author | Colin Snover | 2017-11-14 12:58:38 -0600 |
---|---|---|
committer | Eugene Sandulenko | 2017-11-18 22:35:12 +0100 |
commit | c85f409a0b2fa1094ebd1a51c088d2d830383d38 (patch) | |
tree | 7c8ff6215994946f631309f305bdf1da8ede3caf /engines/fullpipe/scene.h | |
parent | 1337f04122cac5f0343090ac23119e4133624db0 (diff) | |
download | scummvm-rg350-c85f409a0b2fa1094ebd1a51c088d2d830383d38.tar.gz scummvm-rg350-c85f409a0b2fa1094ebd1a51c088d2d830383d38.tar.bz2 scummvm-rg350-c85f409a0b2fa1094ebd1a51c088d2d830383d38.zip |
FULLPIPE: Remove memory leaks and manual memory management in Scene
Diffstat (limited to 'engines/fullpipe/scene.h')
-rw-r--r-- | engines/fullpipe/scene.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/engines/fullpipe/scene.h b/engines/fullpipe/scene.h index 9a684ce7bc..dd559a3cf2 100644 --- a/engines/fullpipe/scene.h +++ b/engines/fullpipe/scene.h @@ -23,6 +23,7 @@ #ifndef FULLPIPE_SCENE_H #define FULLPIPE_SCENE_H +#include "common/ptr.h" #include "fullpipe/gfx.h" namespace Fullpipe { @@ -35,12 +36,12 @@ class Scene : public Background { Common::Array<StaticANIObject *> _staticANIObjectList2; Common::Array<MessageQueue *> _messageQueueList; // PtrList _faObjectList; // not used - Shadows *_shadows; - SoundList *_soundList; + Common::ScopedPtr<Shadows> _shadows; + Common::ScopedPtr<SoundList> _soundList; int16 _sceneId; Common::String _sceneName; int _field_BC; - NGIArchive *_libHandle; + Common::ScopedPtr<NGIArchive> _libHandle; public: Scene(); |