diff options
author | Eugene Sandulenko | 2016-06-07 15:33:57 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2016-06-07 22:23:23 +0200 |
commit | 86d6a46fb65bbce1314277ac976f59ad373e3d9a (patch) | |
tree | 959c35fbc68289d50300b8e4923dcc5ee71d8cf7 /engines | |
parent | 29154f1f2089cbf553599521aa54ac94f452dcef (diff) | |
download | scummvm-rg350-86d6a46fb65bbce1314277ac976f59ad373e3d9a.tar.gz scummvm-rg350-86d6a46fb65bbce1314277ac976f59ad373e3d9a.tar.bz2 scummvm-rg350-86d6a46fb65bbce1314277ac976f59ad373e3d9a.zip |
SCI: Plug memory leak
Diffstat (limited to 'engines')
-rw-r--r-- | engines/sci/sound/drivers/amigamac.cpp | 1 |
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; } |