mfreadwrite/tests: Remove some null checks.

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Nikolay Sivov 2019-04-06 22:02:43 +03:00 committed by Alexandre Julliard
parent a8a4a8d2a5
commit ea76c97ccd

View file

@ -79,10 +79,8 @@ static void test_MFCreateSourceReaderFromByteStream(void)
todo_wine
ok(hr == S_OK || hr == MF_E_UNSUPPORTED_BYTESTREAM_TYPE, "got 0x%08x\n", hr);
if(stream)
IStream_Release(stream);
if(bytestream)
IMFByteStream_Release(bytestream);
IStream_Release(stream);
IMFByteStream_Release(bytestream);
IMFAttributes_Release(attributes);
if(source)
IMFSourceReader_Release(source);