diff options
Diffstat (limited to 'saga/sndres.cpp')
-rw-r--r-- | saga/sndres.cpp | 2 |
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; |