Skip to content

Commit 4f07c0f

Browse files
committed
Call AudioComponentInstanceDispose in AudioUnit Drop
1 parent cafb94e commit 4f07c0f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/audio_unit/mod.rs

+2
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,8 @@ impl Drop for AudioUnit {
323323

324324
self.free_render_callback();
325325
self.free_input_callback();
326+
327+
error::Error::from_os_status(sys::AudioComponentInstanceDispose(self.instance)).ok();
326328
}
327329
}
328330
}

0 commit comments

Comments
 (0)