aboutsummaryrefslogtreecommitdiff
path: root/saga/sndres.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'saga/sndres.cpp')
-rw-r--r--saga/sndres.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/saga/sndres.cpp b/saga/sndres.cpp
index a9feb2508a..13426fa91e 100644
--- a/saga/sndres.cpp
+++ b/saga/sndres.cpp
@@ -380,6 +380,8 @@ int SndRes::getVoiceLength(uint32 voice_rn) {
return -1;
}
+ free(snd_buffer.s_buf);
+
ms_f = (double)snd_buffer.s_buf_len;
if (snd_buffer.s_samplebits == 16) {
ms_f /= 2.0;