forked from bartvdbraak/blender
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:
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)
|
||||
|
Loading…
Reference in New Issue
Block a user