mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-17 15:18:11 +00:00
GOB: Correct a delete/delete[]-mismatch
This commit is contained in:
parent
c053f715d6
commit
658608d0dd
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user