Nikolay Sivov : windowscodecs/tests: Fix a leak in tests (Valgrind).

Alexandre Julliard julliard at winehq.org
Mon Jul 24 15:51:21 CDT 2017


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

Author: Nikolay Sivov <nsivov at codeweavers.com>
Date:   Sun Jul 23 14:54:35 2017 +0300

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

Signed-off-by: Nikolay Sivov <nsivov at codeweavers.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 f0cfc09..e106a08 100644
--- a/dlls/windowscodecs/tests/metadata.c
+++ b/dlls/windowscodecs/tests/metadata.c
@@ -1750,6 +1750,7 @@ static void test_metadata_gif(void)
         hr = IWICMetadataQueryReader_GetMetadataByName(queryreader, queryW, &value);
         ok(hr == S_OK, "GetMetadataByName(%s) error %#x\n", wine_dbgstr_w(queryW), hr);
         ok(value.vt == VT_UNKNOWN, "expected VT_UNKNOWN, got %#x\n", value.vt);
+        PropVariantClear(&value);
 
         IWICMetadataQueryReader_Release(queryreader);
     }




More information about the wine-cvs mailing list