diff options
author | Colin Snover | 2017-11-14 13:05:15 -0600 |
---|---|---|
committer | Eugene Sandulenko | 2017-11-18 22:35:12 +0100 |
commit | 7514c5289bb3f1a351aebf834532179925269f5c (patch) | |
tree | d612a253325e039d47e020bd70178d28571ad460 /engines/fullpipe/statics.cpp | |
parent | b90f21597a1f77141dcfcd916850041258164882 (diff) | |
download | scummvm-rg350-7514c5289bb3f1a351aebf834532179925269f5c.tar.gz scummvm-rg350-7514c5289bb3f1a351aebf834532179925269f5c.tar.bz2 scummvm-rg350-7514c5289bb3f1a351aebf834532179925269f5c.zip |
FULLPIPE: Remove manual memory management of streams
Diffstat (limited to 'engines/fullpipe/statics.cpp')
-rw-r--r-- | engines/fullpipe/statics.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/engines/fullpipe/statics.cpp b/engines/fullpipe/statics.cpp index 289dfa9c0c..223cc8c6d6 100644 --- a/engines/fullpipe/statics.cpp +++ b/engines/fullpipe/statics.cpp @@ -222,17 +222,14 @@ bool StaticANIObject::load(MfcArchive &file) { Common::String movname = genFileName(_id, movNum, "mov"); - Common::SeekableReadStream *f = g_fp->_currArchive->createReadStreamForMember(movname); + Common::ScopedPtr<Common::SeekableReadStream> f(g_fp->_currArchive->createReadStreamForMember(movname)); Movement *mov = new Movement(); + _movements.push_back(mov); - MfcArchive archive(f); + MfcArchive archive(f.get()); mov->load(archive, this); - - _movements.push_back(mov); - - delete f; } Common::Point pt; |