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

Godot version

8899f1eec213620c421ba16c07cf1b3681c5a25d

System information

Windows 11, GLES3, RTX 3000

Issue description

github.com/godotengine/godot/blob/8899f1eec213620c421ba16c07cf1b3681c5a25d/drivers/wasapi/audio_driver_wasapi.cpp#L219-L221

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.

Read more here: Source link