mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-21 19:51:49 +00:00
HDB: Fix Major Memory Leak in File Manager Class
This commit is contained in:
parent
df940b17af
commit
b940fb7588
@ -135,7 +135,7 @@ Common::SeekableReadStream *FileMan::findFirstData(const char *string, DataType
|
||||
|
||||
// Return buffer wrapped in a MemoryReadStream, automatically
|
||||
// uncompressed if it is zlib-compressed
|
||||
return Common::wrapCompressedReadStream(new Common::MemoryReadStream(buffer, file->length, DisposeAfterUse::NO), file->length);
|
||||
return Common::wrapCompressedReadStream(new Common::MemoryReadStream(buffer, file->length, DisposeAfterUse::YES), file->length);
|
||||
}
|
||||
|
||||
int32 FileMan::getLength(const char *string, DataType type) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user