windowscodecs: Fix leak in test_QueryCapability.
This commit is contained in:
parent
153abe0fa7
commit
1aa6e581d7
|
@ -235,6 +235,9 @@ static void test_QueryCapability(void)
|
|||
todo_wine
|
||||
ok(hr == WINCODEC_ERR_COMPONENTNOTFOUND, "expected WINCODEC_ERR_COMPONENTNOTFOUND, got %#x\n", hr);
|
||||
|
||||
if (SUCCEEDED(hr))
|
||||
IWICBitmapDecoder_Release(decoder);
|
||||
|
||||
pos.QuadPart = 0;
|
||||
hr = IStream_Seek(stream, pos, SEEK_SET, NULL);
|
||||
ok(hr == S_OK, "IStream_Seek error %#x\n", hr);
|
||||
|
|
Loading…
Reference in New Issue