Vincent Povirk : windowscodecs: Fix leak in test_QueryCapability.

Alexandre Julliard julliard at winehq.org
Thu Jun 19 14:26:41 CDT 2014


Module: wine
Branch: master
Commit: 1aa6e581d74df95c74b17ffddd1f52d451d3dc6c
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=1aa6e581d74df95c74b17ffddd1f52d451d3dc6c

Author: Vincent Povirk <vincent at codeweavers.com>
Date:   Thu Jun 12 16:02:05 2014 -0500

windowscodecs: Fix leak in test_QueryCapability.

---

 dlls/windowscodecs/tests/tiffformat.c |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/dlls/windowscodecs/tests/tiffformat.c b/dlls/windowscodecs/tests/tiffformat.c
index 5e01562..cee8882 100644
--- a/dlls/windowscodecs/tests/tiffformat.c
+++ b/dlls/windowscodecs/tests/tiffformat.c
@@ -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);




More information about the wine-cvs mailing list