windowscodecs: Fix leak in test_QueryCapability.

Vincent Povirk madewokherd at gmail.com
Wed Jun 18 15:05:24 CDT 2014


For bug 36598.
-------------- next part --------------
From 8afd807763801e94d4ebeaadba9b299858e905a6 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 | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/dlls/windowscodecs/tests/tiffformat.c b/dlls/windowscodecs/tests/tiffformat.c
index aac6618..5e01562 100644
--- a/dlls/windowscodecs/tests/tiffformat.c
+++ b/dlls/windowscodecs/tests/tiffformat.c
@@ -239,6 +239,8 @@ todo_wine
     hr = IStream_Seek(stream, pos, SEEK_SET, NULL);
     ok(hr == S_OK, "IStream_Seek error %#x\n", hr);
 
+    IWICBitmapDecoder_Release(decoder);
+
     hr = IWICImagingFactory_CreateDecoderFromStream(factory, stream, NULL, 0, &decoder);
     ok(hr == S_OK, "CreateDecoderFromStream error %#x\n", hr);
 
-- 
1.8.3.2



More information about the wine-patches mailing list