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

The function was exited without calling the Release method of the COM object pointed by the 'enumerator' pointer. drivers/wasapi/audio_driver_wasapi.cpp 220 #65607

Open
Tracked by #76797
fire opened this issue Sep 10, 2022 · 0 comments

Comments

@fire
Copy link
Member

fire commented Sep 10, 2022

Godot version

8899f1e

System information

Windows 11, GLES3, RTX 3000

Issue description

hr = enumerator->EnumAudioEndpoints(p_capture ? eCapture : eRender, DEVICE_STATE_ACTIVE, &devices);
ERR_FAIL_COND_V(hr != S_OK, ERR_CANT_OPEN);

V773 The function was exited without calling the Release method of the COM object pointed by the 'enumerator' pointer. audio_driver_wasapi.cpp 220

I think we're supposed to call enumerator->Release() on ERR_FAIL_COND_V.

Steps to reproduce

Static analyis by pvsstudio and using the capture execution mode.

scons target=release_debug vsproj=yes bits=64 compiledb=yes warning=no test=yes deprecated=no platform=windows bits=64 custom_modules=../godot-modules-groups

Minimal reproduction project

Use godot engine project.

@Chaosus Chaosus added this to the 4.0 milestone Sep 12, 2022
@akien-mga akien-mga removed this from the 4.0 milestone Jan 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants