aboutsummaryrefslogtreecommitdiff
path: root/engines/sherlock/tattoo/tattoo_journal.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2015-07-29 08:29:00 -0400
committerPaul Gilbert2015-07-29 08:29:00 -0400
commit9e5bd8609f04429ceaa218d1e5560e0d2d87c586 (patch)
treeaef9b652413658a7e308c2a18a15182db8b5abc8 /engines/sherlock/tattoo/tattoo_journal.cpp
parent8c46a7ef2a1ec19ec9a776890cdcf8ed3085369c (diff)
downloadscummvm-rg350-9e5bd8609f04429ceaa218d1e5560e0d2d87c586.tar.gz
scummvm-rg350-9e5bd8609f04429ceaa218d1e5560e0d2d87c586.tar.bz2
scummvm-rg350-9e5bd8609f04429ceaa218d1e5560e0d2d87c586.zip
SHERLOCK: RT: Fix memory leaks
Diffstat (limited to 'engines/sherlock/tattoo/tattoo_journal.cpp')
-rw-r--r--engines/sherlock/tattoo/tattoo_journal.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/engines/sherlock/tattoo/tattoo_journal.cpp b/engines/sherlock/tattoo/tattoo_journal.cpp
index b7830620c1..cd8a94a884 100644
--- a/engines/sherlock/tattoo/tattoo_journal.cpp
+++ b/engines/sherlock/tattoo/tattoo_journal.cpp
@@ -61,6 +61,7 @@ void TattooJournal::show() {
stream->read(palette, PALETTE_SIZE);
screen.translatePalette(palette);
ui.setupBGArea(palette);
+ delete stream;
// Set screen to black, and set background
screen._backBuffer1.blitFrom((*_journalImages)[0], Common::Point(0, 0));