diff --git a/src/nodes/audio.rs b/src/nodes/audio.rs index 725a9a29..205df13d 100644 --- a/src/nodes/audio.rs +++ b/src/nodes/audio.rs @@ -85,6 +85,9 @@ impl SoundAspect for Sound { } impl Drop for Sound { fn drop(&mut self) { + if let Some(instance) = self.instance.lock().take() { + instance.stop(); + } if let Some(sk_sound) = self.sk_sound.take() { destroy_queue::add(sk_sound); }