[PATCH] dmcompos/tests: Fix a memory leak (Valgrind).

Michael Stefaniuc mstefani at winehq.org
Tue Jan 22 16:36:50 CST 2019


On 1/22/19 9:35 PM, Sven Baars wrote:
> Signed-off-by: Sven Baars <sven.wine at gmail.com>
Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>


> ---
>  dlls/dmcompos/tests/dmcompos.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/dlls/dmcompos/tests/dmcompos.c b/dlls/dmcompos/tests/dmcompos.c
> index 7063e99acd..d23f5d6dae 100644
> --- a/dlls/dmcompos/tests/dmcompos.c
> +++ b/dlls/dmcompos/tests/dmcompos.c
> @@ -543,6 +543,7 @@ static void test_parsedescriptor(void)
>      hr = IDirectMusicObject_ParseDescriptor(dmo, stream, &desc);
>      ok(hr == DMUS_E_CHUNKNOTFOUND,
>              "ParseDescriptor failed: %08x, expected DMUS_E_CHUNKNOTFOUND\n", hr);
> +    IStream_Release(stream);
>  
>      /* All desc chunks, only DMUS_OBJ_OBJECT and DMUS_OBJ_CLASS supported */
>      stream = gen_riff_stream(alldesc);
> 




More information about the wine-devel mailing list