diff options
Diffstat (limited to 'engines/chewy/sound.cpp')
-rw-r--r-- | engines/chewy/sound.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/chewy/sound.cpp b/engines/chewy/sound.cpp index 36f2d63073..843387d1c8 100644 --- a/engines/chewy/sound.cpp +++ b/engines/chewy/sound.cpp @@ -100,7 +100,7 @@ void Sound::playMusic(int num, bool loop) { uint32 musicNum = _soundRes->getChunkCount() - 1 - num; Chunk *chunk = _soundRes->getChunk(musicNum); byte *data = _soundRes->getChunkData(musicNum); - + playMusic(data, chunk->size, loop); delete[] data; @@ -252,6 +252,8 @@ void Sound::convertTMFToMod(byte *tmfData, uint32 tmfSize, byte *modData, uint32 // TODO: 31 bytes instrument positions // TODO: notes + + free(modData); } } // End of namespace Chewy |