windowscodecs: Fix leak in test_QueryCapability.

This commit is contained in:
Vincent Povirk 2014-06-12 16:02:05 -05:00 committed by Alexandre Julliard
parent 153abe0fa7
commit 1aa6e581d7
1 changed files with 3 additions and 0 deletions

View File

@ -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);