diff options
author | Paul Gilbert | 2015-06-11 19:28:21 -0400 |
---|---|---|
committer | Paul Gilbert | 2015-06-11 19:28:21 -0400 |
commit | 647d69c1f13bac9f356a3bdb08db5ff3f4cbd328 (patch) | |
tree | 2567215f1741aac9dc546a0b07f12ee6223e5ab5 | |
parent | 2b8fa87cf4ada4a295d33561f88bd42566c88b8d (diff) | |
download | scummvm-rg350-647d69c1f13bac9f356a3bdb08db5ff3f4cbd328.tar.gz scummvm-rg350-647d69c1f13bac9f356a3bdb08db5ff3f4cbd328.tar.bz2 scummvm-rg350-647d69c1f13bac9f356a3bdb08db5ff3f4cbd328.zip |
SHERLOCK: RT: Fix stream leak loading map data
-rw-r--r-- | engines/sherlock/tattoo/tattoo_map.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/sherlock/tattoo/tattoo_map.cpp b/engines/sherlock/tattoo/tattoo_map.cpp index 98839861ed..bce07e3dee 100644 --- a/engines/sherlock/tattoo/tattoo_map.cpp +++ b/engines/sherlock/tattoo/tattoo_map.cpp @@ -296,6 +296,8 @@ void TattooMap::loadData() { mapEntry._iconNum = atoi(iconStr.c_str()) - 1; } while (stream->pos() < stream->size()); + + delete stream; } void TattooMap::drawMapIcons() { |