Skip to content
New issue

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

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

Already on GitHub? # to your account

fixes mem leak from PROPVARIANT #72

Merged
merged 2 commits into from
Apr 7, 2023
Merged

fixes mem leak from PROPVARIANT #72

merged 2 commits into from
Apr 7, 2023

Conversation

KillerBOSS2019
Copy link
Contributor

@KillerBOSS2019 KillerBOSS2019 commented Apr 6, 2023

This is pretty noticeable memory leak from CreateDevice that gets data from store PROPVARIANT aka the value = store.GetValue(pk). This PR will use ole32 PropVariantClear to clear value to solve the memory leak issue.

Copy link
Owner

@AndreMiras AndreMiras left a comment

Choose a reason for hiding this comment

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

Good catch thanks!
Could you address the linter issues before we can merge?
https://github.com/AndreMiras/pycaw/actions/runs/4633151053/jobs/8203821389?pr=72

pycaw/api/mmdeviceapi/depend/structures.py Outdated Show resolved Hide resolved
pycaw/api/mmdeviceapi/depend/structures.py Outdated Show resolved Hide resolved
pycaw/utils.py Outdated Show resolved Hide resolved
@KillerBOSS2019
Copy link
Contributor Author

Thanks!

Copy link
Owner

@AndreMiras AndreMiras left a comment

Choose a reason for hiding this comment

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

Awesome thanks 🚀

@AndreMiras AndreMiras merged commit 2f02145 into AndreMiras:develop Apr 7, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants