Skip to content

Commit

Permalink
wasapi: Default initialize IMMDevice temporary to avoid potential gar…
Browse files Browse the repository at this point in the history
…bage CloseHandle on error.
  • Loading branch information
kinetiknz committed Jan 7, 2016
1 parent a189042 commit 23a17cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cubeb_wasapi.cpp
Expand Up @@ -1520,7 +1520,7 @@ static cubeb_device_info *
wasapi_create_device(IMMDeviceEnumerator * enumerator, IMMDevice * dev)
{
IMMEndpoint * endpoint = NULL;
IMMDevice * devnode;
IMMDevice * devnode = NULL;
IAudioClient * client = NULL;
cubeb_device_info * ret = NULL;
EDataFlow flow;
Expand Down

0 comments on commit 23a17cb

Please sign in to comment.