windowscodecs: Fix leak in test_QueryCapability.

Vincent Povirk madewokherd at gmail.com
Thu Jun 19 11:07:24 CDT 2014


-------------- next part --------------
From 5e61f158e4cbb80f0247073a5c3e0d678cf8bdae Mon Sep 17 00:00:00 2001
From: Vincent Povirk <vincent at codeweavers.com>
Date: Thu, 12 Jun 2014 16:02:05 -0500
Subject: [PATCH] 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 aac6618..cc1951e 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);
-- 
1.8.3.2



More information about the wine-patches mailing list