Vincent Povirk : windowscodecs: Fix leak in test_propertybag_getpropertyinfo.
Alexandre Julliard
julliard at winehq.org
Thu Jun 19 14:26:40 CDT 2014
Module: wine
Branch: master
Commit: ed92450d6f7474311561f0bc6322fd39a2c57b63
URL: http://source.winehq.org/git/wine.git/?a=commit;h=ed92450d6f7474311561f0bc6322fd39a2c57b63
Author: Vincent Povirk <vincent at codeweavers.com>
Date: Thu Jun 12 15:48:36 2014 -0500
windowscodecs: Fix leak in test_propertybag_getpropertyinfo.
---
dlls/windowscodecs/tests/propertybag.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/dlls/windowscodecs/tests/propertybag.c b/dlls/windowscodecs/tests/propertybag.c
index b3cf191..55f5f65 100644
--- a/dlls/windowscodecs/tests/propertybag.c
+++ b/dlls/windowscodecs/tests/propertybag.c
@@ -67,10 +67,12 @@ static void test_propertybag_getpropertyinfo(IPropertyBag2 *property, ULONG expe
ok(pb[0].vt == VT_UI1, "Invalid variant type, pb[0].vt=%x\n", pb[0].vt);
ok(pb[0].dwType == PROPBAG2_TYPE_DATA, "Invalid variant type, pb[0].dwType=%x\n", pb[0].dwType);
ok(lstrcmpW(pb[0].pstrName, wszTestProperty1) == 0, "Invalid property name, pb[0].pstrName=%s\n", wine_dbgstr_w(pb[0].pstrName));
+ CoTaskMemFree(pb[0].pstrName);
ok(pb[1].vt == VT_R4, "Invalid variant type, pb[1].vt=%x\n", pb[1].vt);
ok(pb[1].dwType == PROPBAG2_TYPE_DATA, "Invalid variant type, pb[1].dwType=%x\n", pb[1].dwType);
ok(lstrcmpW(pb[1].pstrName, wszTestProperty2) == 0, "Invalid property name, pb[1].pstrName=%s\n", wine_dbgstr_w(pb[1].pstrName));
+ CoTaskMemFree(pb[1].pstrName);
}
static void test_propertybag_countproperties(IPropertyBag2 *property, ULONG expected_count)
More information about the wine-cvs
mailing list