From 23da164136271c5c1b79cef2c62d03d3b136ccbc Mon Sep 17 00:00:00 2001 From: Willem Jan Palenstijn Date: Wed, 17 Apr 2013 23:33:51 +0200 Subject: SCI: Fix memory leak --- engines/sci/console.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/engines/sci/console.cpp b/engines/sci/console.cpp index c5ff6b454b..50fae61de0 100644 --- a/engines/sci/console.cpp +++ b/engines/sci/console.cpp @@ -2227,6 +2227,7 @@ bool Console::cmdIsSample(int argc, const char **argv) { DebugPrintf("Sample size: %d, sample rate: %d, channels: %d, digital channel number: %d\n", track->digitalSampleSize, track->digitalSampleRate, track->channelCount, track->digitalChannelNr); + delete soundRes; return true; } -- cgit v1.2.3