mp3dmod: Release a held buffer on destruction.

Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Zebediah Figura 2020-02-26 00:19:22 -06:00 committed by Alexandre Julliard
parent fb94eae977
commit 88357e92f1
2 changed files with 3 additions and 1 deletions

View File

@ -103,6 +103,8 @@ static ULONG WINAPI Unknown_Release(IUnknown *iface)
if (!refcount)
{
if (This->buffer)
IMediaBuffer_Release(This->buffer);
if (This->intype_set)
MoFreeMediaType(&This->intype);
MoFreeMediaType(&This->outtype);

View File

@ -239,7 +239,7 @@ static void test_convert(void)
ok(hr == S_OK, "got %#x\n", hr);
IMediaObject_Release(dmo);
todo_wine ok(inbuf.refcount == 1, "Got outstanding refcount %d.\n", inbuf.refcount);
ok(inbuf.refcount == 1, "Got outstanding refcount %d.\n", inbuf.refcount);
ok(outbuf.refcount == 1, "Got outstanding refcount %d.\n", outbuf.refcount);
}