Commit 0d4f63b3 authored by Adrian Thiele's avatar Adrian Thiele Committed by Alexandre Julliard

mfreadwrite/reader: Release device manager in source_reader_release.

parent eeb25932
...@@ -211,6 +211,8 @@ static ULONG source_reader_release(struct source_reader *reader) ...@@ -211,6 +211,8 @@ static ULONG source_reader_release(struct source_reader *reader)
if (!refcount) if (!refcount)
{ {
if (reader->device_manager)
IUnknown_Release(reader->device_manager);
if (reader->async_callback) if (reader->async_callback)
IMFSourceReaderCallback_Release(reader->async_callback); IMFSourceReaderCallback_Release(reader->async_callback);
if (reader->descriptor) if (reader->descriptor)
......
...@@ -1406,7 +1406,7 @@ static void test_reader_d3d9(void) ...@@ -1406,7 +1406,7 @@ static void test_reader_d3d9(void)
IMFSourceReader_Release(reader); IMFSourceReader_Release(reader);
refcount = IDirect3DDeviceManager9_Release(d3d9_manager); refcount = IDirect3DDeviceManager9_Release(d3d9_manager);
todo_wine ok(!refcount, "Unexpected refcount %lu.\n", refcount); ok(!refcount, "Unexpected refcount %lu.\n", refcount);
IDirect3DDevice9_Release(d3d9_device); IDirect3DDevice9_Release(d3d9_device);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment