diff options
Diffstat (limited to 'engines/zvision')
-rw-r--r-- | engines/zvision/zvision.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/engines/zvision/zvision.cpp b/engines/zvision/zvision.cpp index 72441eb8ad..7f925e9828 100644 --- a/engines/zvision/zvision.cpp +++ b/engines/zvision/zvision.cpp @@ -107,7 +107,10 @@ void ZVision::initialize() { // Register the file entries within the zfs archives with the SearchMan for (Common::ArchiveMemberList::iterator iter = list.begin(); iter != list.end(); ++iter) { Common::String name = (*iter)->getName(); - ZfsArchive *archive = new ZfsArchive(name, (*iter)->createReadStream()); + Common::SeekableReadStream *stream = (*iter)->createReadStream(); + ZfsArchive *archive = new ZfsArchive(name, stream); + + delete stream; SearchMan.add(name, archive); } |