[PATCH] dsound: Fix a memory leak (Valgrind).

Andrew Eikum aeikum at codeweavers.com
Wed Dec 19 07:39:03 CST 2018


Signed-off-by: Andrew Eikum <aeikum at codeweavers.com>

On Mon, Dec 17, 2018 at 09:28:00PM +0100, Sven Baars wrote:
> Signed-off-by: Sven Baars <sven.wine at gmail.com>
> ---
>  dlls/dsound/dsound_main.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/dlls/dsound/dsound_main.c b/dlls/dsound/dsound_main.c
> index 8dd86e40ed..4e752be6ba 100644
> --- a/dlls/dsound/dsound_main.c
> +++ b/dlls/dsound/dsound_main.c
> @@ -480,6 +480,7 @@ HRESULT enumerate_mmdevices(EDataFlow flow, GUID *guids,
>      }
>  
>      if(count == 0){
> +        IMMDeviceCollection_Release(coll);
>          release_mmdevenum(devenum, init_hr);
>          return DS_OK;
>      }
> -- 
> 2.17.1
> 
> 
> 



More information about the wine-devel mailing list