aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scumm/sound.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/scumm/sound.cpp b/scumm/sound.cpp
index 0360b5f761..5540a8dd56 100644
--- a/scumm/sound.cpp
+++ b/scumm/sound.cpp
@@ -1252,6 +1252,7 @@ int Sound::playBundleSound(char *sound) {
byte *final = (byte *)malloc(size);
memcpy(final, ptr, size);
+ free(ptr);
if (_scumm->_actorToPrintStrFor != 0xFF && _scumm->_actorToPrintStrFor != 0) {
Actor *a = _scumm->derefActorSafe(_scumm->_actorToPrintStrFor, "playBundleSound");