-
-
Notifications
You must be signed in to change notification settings - Fork 21.7k
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
Use COM smart pointers in WASAPI driver #91975
Use COM smart pointers in WASAPI driver #91975
Conversation
Thanks for the contribution! Could you rebase your branch on latest upstream |
Done. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please squash your commits, see pull request workflow.
Use ComPtr to handle COM objects safely Use COM smart pointers in WASAPI driver Fix ComPtr handling Fix crash due to IAudioClient3 type conversion
Fixed crash on Windows when |
Thanks! And congrats for your first merged Godot contribution 🎉 |
Use COM smart pointer (
ComPtr
) to simplify memory management in WASAPI driver.This reduces chances of calling
Release()
when a COM object has not been allocated.