Skip to content

Commit

Permalink
Call AudioComponentInstanceDispose in AudioUnit Drop
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelHills committed Oct 24, 2020
1 parent cafb94e commit 4f07c0f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/audio_unit/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,8 @@ impl Drop for AudioUnit {

self.free_render_callback();
self.free_input_callback();

error::Error::from_os_status(sys::AudioComponentInstanceDispose(self.instance)).ok();
}
}
}
Expand Down

0 comments on commit 4f07c0f

Please sign in to comment.