aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSven Hesse2013-04-15 18:24:09 +0200
committerSven Hesse2013-04-15 18:24:09 +0200
commit658608d0dd8b45ff9b8dd40f599e688b13356961 (patch)
tree94233502bcd5d6b3fadda1aff15fc9c9d10fc47b
parentc053f715d65806ca68850211d62d44a22c6fcac9 (diff)
downloadscummvm-rg350-658608d0dd8b45ff9b8dd40f599e688b13356961.tar.gz
scummvm-rg350-658608d0dd8b45ff9b8dd40f599e688b13356961.tar.bz2
scummvm-rg350-658608d0dd8b45ff9b8dd40f599e688b13356961.zip
GOB: Correct a delete/delete[]-mismatch
-rw-r--r--engines/gob/sound/sound.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/gob/sound/sound.cpp b/engines/gob/sound/sound.cpp
index 63af6aeef4..a4c74642dd 100644
--- a/engines/gob/sound/sound.cpp
+++ b/engines/gob/sound/sound.cpp
@@ -119,7 +119,7 @@ bool Sound::sampleLoad(SoundDesc *sndDesc, SoundType type, const char *fileName)
byte *data = _vm->_dataIO->getFile(fileName, size);
if (!data || !sndDesc->load(type, data, size)) {
- delete data;
+ delete[] data;
warning("Sound::sampleLoad(): Failed to load sound \"%s\"", fileName);
return false;