GOB: Correct a delete/delete[]-mismatch

This commit is contained in:
Sven Hesse 2013-04-15 18:24:09 +02:00
parent c053f715d6
commit 658608d0dd

View File

@ -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;