Sven Baars : windowscodecs/tests: Fix a memory leak (Valgrind).

Alexandre Julliard julliard at winehq.org
Tue Aug 20 15:35:22 CDT 2019


Module: wine
Branch: master
Commit: 4321cd9d7e69cac0156679f6147597ef45e57562
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=4321cd9d7e69cac0156679f6147597ef45e57562

Author: Sven Baars <sven.wine at gmail.com>
Date:   Sun Aug 18 23:24:32 2019 +0200

windowscodecs/tests: Fix a memory leak (Valgrind).

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=43387
Signed-off-by: Sven Baars <sven.wine at gmail.com>
Signed-off-by: Vincent Povirk <vincent at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/windowscodecs/tests/metadata.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dlls/windowscodecs/tests/metadata.c b/dlls/windowscodecs/tests/metadata.c
index b434648..a955702 100644
--- a/dlls/windowscodecs/tests/metadata.c
+++ b/dlls/windowscodecs/tests/metadata.c
@@ -3029,6 +3029,7 @@ static void test_queryreader(void)
                     ok(hr == E_INVALIDARG, "got %#x\n", hr);
 
                     IWICMetadataQueryReader_Release(new_reader);
+                    PropVariantClear(&value);
                 }
                 else if (value.vt == VT_LPSTR)
                     ok(!lstrcmpA(U(value).pszVal, test_data[i].str_value), "%u: expected %s, got %s\n",




More information about the wine-cvs mailing list