diff options
author | Willem Jan Palenstijn | 2012-09-23 21:23:20 +0200 |
---|---|---|
committer | Willem Jan Palenstijn | 2012-09-24 19:25:31 +0200 |
commit | edeedc3cc57b2d0fee8431a6b6f27b1b308bb2b7 (patch) | |
tree | 374762dd072209861459dd0a5abf1cc8875e054c | |
parent | 12c83203749b48e483716610a9b520f1102921ff (diff) | |
download | scummvm-rg350-edeedc3cc57b2d0fee8431a6b6f27b1b308bb2b7.tar.gz scummvm-rg350-edeedc3cc57b2d0fee8431a6b6f27b1b308bb2b7.tar.bz2 scummvm-rg350-edeedc3cc57b2d0fee8431a6b6f27b1b308bb2b7.zip |
WINTERMUTE: Fix leak
-rw-r--r-- | engines/wintermute/base/file/base_disk_file.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/engines/wintermute/base/file/base_disk_file.cpp b/engines/wintermute/base/file/base_disk_file.cpp index 2d3951b026..25be3dad2d 100644 --- a/engines/wintermute/base/file/base_disk_file.cpp +++ b/engines/wintermute/base/file/base_disk_file.cpp @@ -178,10 +178,8 @@ Common::SeekableReadStream *openDiskFile(const Common::String &filename) { } delete[] compBuffer; - - return new Common::MemoryReadStream(data, uncompSize, DisposeAfterUse::YES); delete file; - file = NULL; + return new Common::MemoryReadStream(data, uncompSize, DisposeAfterUse::YES); } else { file->seek(0, SEEK_SET); return file; |