diff options
author | Thierry Crozat | 2017-09-24 18:02:21 +0100 |
---|---|---|
committer | Thierry Crozat | 2018-01-23 02:15:32 +0000 |
commit | 65d30cf720db9d3395ca5d3fa002a228c0549a80 (patch) | |
tree | 275120d9690fc8a5016f2144c1edd5b3f9c303b0 /engines | |
parent | d1bdfd2bde41732e9c2eaf374ff88b56727c9013 (diff) | |
download | scummvm-rg350-65d30cf720db9d3395ca5d3fa002a228c0549a80.tar.gz scummvm-rg350-65d30cf720db9d3395ca5d3fa002a228c0549a80.tar.bz2 scummvm-rg350-65d30cf720db9d3395ca5d3fa002a228c0549a80.zip |
SUPERNOVA: Plug memory leak in MOD music streams
Diffstat (limited to 'engines')
-rw-r--r-- | engines/supernova/supernova.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/supernova/supernova.cpp b/engines/supernova/supernova.cpp index 3b703cfef7..7fb95c507c 100644 --- a/engines/supernova/supernova.cpp +++ b/engines/supernova/supernova.cpp @@ -805,7 +805,7 @@ Common::MemoryReadStream *SupernovaEngine::convertToMod(const char *filename, in while ((nb = msnFile.read(buf, 4096)) > 0) buffer.write(buf, nb); - return new Common::MemoryReadStream(buffer.getData(), buffer.size()); + return new Common::MemoryReadStream(buffer.getData(), buffer.size(), DisposeAfterUse::YES); } bool SupernovaEngine::canLoadGameStateCurrently() { |