Fix T65613: Memory leak in Audaspace with 3D sound
This commit is contained in:
parent
424566239f
commit
b236c2a0ce
Notes:
blender-bot
2023-02-14 02:16:28 +01:00
Referenced by issue #65613, Memory leak in Audaspace with 3D sound
|
@ -524,12 +524,18 @@ void BKE_sound_destroy_scene(Scene *scene)
|
|||
if (scene->sound_scrub_handle) {
|
||||
AUD_Handle_stop(scene->sound_scrub_handle);
|
||||
}
|
||||
if (scene->speaker_handles) {
|
||||
void *handle;
|
||||
|
||||
while ((handle = AUD_getSet(scene->speaker_handles))) {
|
||||
AUD_Sequence_remove(scene->sound_scene, handle);
|
||||
}
|
||||
|
||||
AUD_destroySet(scene->speaker_handles);
|
||||
}
|
||||
if (scene->sound_scene) {
|
||||
AUD_Sequence_free(scene->sound_scene);
|
||||
}
|
||||
if (scene->speaker_handles) {
|
||||
AUD_destroySet(scene->speaker_handles);
|
||||
}
|
||||
}
|
||||
|
||||
void BKE_sound_reset_scene_specs(Scene *scene)
|
||||
|
|
Loading…
Reference in New Issue