aboutsummaryrefslogtreecommitdiff
path: root/engines/sherlock/tattoo
diff options
context:
space:
mode:
authorPaul Gilbert2015-06-11 19:28:21 -0400
committerPaul Gilbert2015-06-11 19:28:21 -0400
commit647d69c1f13bac9f356a3bdb08db5ff3f4cbd328 (patch)
tree2567215f1741aac9dc546a0b07f12ee6223e5ab5 /engines/sherlock/tattoo
parent2b8fa87cf4ada4a295d33561f88bd42566c88b8d (diff)
downloadscummvm-rg350-647d69c1f13bac9f356a3bdb08db5ff3f4cbd328.tar.gz
scummvm-rg350-647d69c1f13bac9f356a3bdb08db5ff3f4cbd328.tar.bz2
scummvm-rg350-647d69c1f13bac9f356a3bdb08db5ff3f4cbd328.zip
SHERLOCK: RT: Fix stream leak loading map data
Diffstat (limited to 'engines/sherlock/tattoo')
-rw-r--r--engines/sherlock/tattoo/tattoo_map.cpp2
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() {