aboutsummaryrefslogtreecommitdiff
path: root/engines/sci
diff options
context:
space:
mode:
authorEugene Sandulenko2016-06-07 15:33:57 +0200
committerEugene Sandulenko2016-06-07 22:23:23 +0200
commit86d6a46fb65bbce1314277ac976f59ad373e3d9a (patch)
tree959c35fbc68289d50300b8e4923dcc5ee71d8cf7 /engines/sci
parent29154f1f2089cbf553599521aa54ac94f452dcef (diff)
downloadscummvm-rg350-86d6a46fb65bbce1314277ac976f59ad373e3d9a.tar.gz
scummvm-rg350-86d6a46fb65bbce1314277ac976f59ad373e3d9a.tar.bz2
scummvm-rg350-86d6a46fb65bbce1314277ac976f59ad373e3d9a.zip
SCI: Plug memory leak
Diffstat (limited to 'engines/sci')
-rw-r--r--engines/sci/sound/drivers/amigamac.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/engines/sci/sound/drivers/amigamac.cpp b/engines/sci/sound/drivers/amigamac.cpp
index 0f93b19e7c..031fd32164 100644
--- a/engines/sci/sound/drivers/amigamac.cpp
+++ b/engines/sci/sound/drivers/amigamac.cpp
@@ -773,6 +773,7 @@ bool MidiDriver_AmigaMac::loadInstrumentsSCI0(Common::File &file) {
if (id < 0 || id > 255) {
warning("Amiga/Mac driver: Error: instrument ID out of bounds");
+ delete instrument;
return false;
}