Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix drop #198

Merged
merged 6 commits into from
Sep 8, 2024
Merged

fix drop #198

merged 6 commits into from
Sep 8, 2024

Conversation

olafklingt
Copy link
Contributor

in the context of a program i wrote I run into a problem with a segfault on close. because of what happen in drop.
Here is a draft of a change that solved it for me.

@@ -659,6 +659,7 @@ impl Client {
impl Drop for Client {
fn drop(&mut self) {
let _m = CREATE_OR_DESTROY_CLIENT_MUTEX.lock().unwrap();
println!("drop client is called");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove this statement.

@wmedrano
Copy link
Member

wmedrano commented Jul 23, 2024

genrally lgtm and is generally safer. Can you increment the version number to 0.12.0 as welll?

@olafklingt
Copy link
Contributor Author

Are you interested in a pr that fixes the linting problems?

@wmedrano
Copy link
Member

If you want to follow up with lint changes go ahead!

@wmedrano wmedrano merged commit 4a84441 into RustAudio:main Sep 8, 2024
0 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants