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

Fixed memory leak #222

Merged
merged 3 commits into from Jul 31, 2020
Merged

Fixed memory leak #222

merged 3 commits into from Jul 31, 2020

Conversation

techbech
Copy link
Contributor

@techbech techbech commented Oct 9, 2019

First of all, thanks for this amazing lib. The API looks amazing!

So I just started testing soundio, but I kept getting a visual leak detection. The leak was caused by soundio_connect(soundio);

@techbech
Copy link
Contributor Author

Maybe I need to put this free's somewhere else. I guess there can be cases this fix doesn't account for, but where I put them now fixed the problem I'm having.

Copy link
Contributor

@wegylexy wegylexy left a comment

Choose a reason for hiding this comment

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

Move freeing default_capture_id to another conditional branch.

src/wasapi.c Outdated Show resolved Hide resolved
src/wasapi.c Show resolved Hide resolved
Peteck and others added 2 commits May 14, 2020 11:34
Co-authored-by: TimTim <i@timtim.hk>
Co-authored-by: TimTim <i@timtim.hk>
@techbech
Copy link
Contributor Author

thank you, @wegylexy! :-)

@techbech
Copy link
Contributor Author

@andrewrk Could we soon merge this fix?

@andrewrk andrewrk merged commit a46b0f2 into andrewrk:master Jul 31, 2020
@wegylexy
Copy link
Contributor

@andrewrk Do you also have time to evaluate the other pull requests? Especially those WASAPI ones as the current thing is partially broken on Windows 10 v2004.

@andrewrk
Copy link
Owner

No I won't be making another release for about 2 years, but then it should pick back up. The biggest problem with pull requests is testing. QA for this software is near impossible, we need actual hardware and half the time I ask people if they tested their code, they say "no, I just guessed this would work".

jomael added a commit to jomael/libsoundio that referenced this pull request Aug 7, 2021
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.

None yet

4 participants