aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorEugene Sandulenko2013-04-21 14:20:19 +0300
committerEugene Sandulenko2013-04-21 14:27:30 +0300
commitf882374d8ae5830cfd4bbce8a8786aa90185e598 (patch)
treec6aaf2b30b84c8071ac98b5ce1ec2ce1097b5b4b /engines
parent095dfcad152e971662b51b223fb6af9150ed4584 (diff)
downloadscummvm-rg350-f882374d8ae5830cfd4bbce8a8786aa90185e598.tar.gz
scummvm-rg350-f882374d8ae5830cfd4bbce8a8786aa90185e598.tar.bz2
scummvm-rg350-f882374d8ae5830cfd4bbce8a8786aa90185e598.zip
TESTBED: Fix memory leak. CID 1003583
Diffstat (limited to 'engines')
-rw-r--r--engines/testbed/midi.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/testbed/midi.cpp b/engines/testbed/midi.cpp
index 69d361b0d6..70ede406d5 100644
--- a/engines/testbed/midi.cpp
+++ b/engines/testbed/midi.cpp
@@ -96,6 +96,10 @@ TestExitStatus MidiTests::playMidiMusic() {
Common::String errMsg = MidiDriver::getErrorName(errCode);
Testsuite::writeOnScreen(errMsg, Common::Point(0, 100));
Testsuite::logPrintf("Error! %s", errMsg.c_str());
+
+ delete smfParser;
+ delete driver;
+
return kTestFailed;
}