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

Michael Stefaniuc mstefani at winehq.org
Tue Jan 22 16:37:10 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/dmscript/tests/dmscript.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/dlls/dmscript/tests/dmscript.c b/dlls/dmscript/tests/dmscript.c
> index 6784901cdd..ef2c17c3ca 100644
> --- a/dlls/dmscript/tests/dmscript.c
> +++ b/dlls/dmscript/tests/dmscript.c
> @@ -327,6 +327,7 @@ static void test_parsedescriptor(void)
>      hr = IDirectMusicObject_ParseDescriptor(dmo, stream, &desc);
>      ok(hr == DMUS_E_SCRIPT_INVALID_FILE,
>              "ParseDescriptor failed: %08x, expected DMUS_E_SCRIPT_INVALID_FILE\n", hr);
> +    IStream_Release(stream);
>  
>      IDirectMusicObject_Release(dmo);
>  }
> 




More information about the wine-devel mailing list