Added a MEM_freeN call to sound_free_sound() to release bSound->stream

created by audio_makestream(). Fixes "Err Totblck stream len..." messages
and memory leak.
This commit is contained in:
Alexander Ewering 2003-07-18 15:30:12 +00:00
parent 2b40962ea5
commit c2f92ace79

@ -33,7 +33,7 @@ void sound_free_sound(bSound *sound)
//if (sound) {
// sound_set_sample(sound, NULL);
//}
if (sound->stream) MEM_freeN(sound->stream);
}
void sound_free_sample(bSample *sample)