Release a couple of property variants -- plugs a tiny memory leak.

Andrew Bogott andrew at CodeWeavers.com
Tue Nov 23 03:43:32 CST 2010


---
 dlls/shdocvw/tests/intshcut.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/dlls/shdocvw/tests/intshcut.c b/dlls/shdocvw/tests/intshcut.c
index 4cf289d..5245d9f 100644
--- a/dlls/shdocvw/tests/intshcut.c
+++ b/dlls/shdocvw/tests/intshcut.c
@@ -222,6 +222,8 @@ static void test_ReadAndWriteProperties(void)
 
         ok(lstrcmpW(pvread[0].pwszVal, iconPath) == 0, "Wrong icon path read: %s\n",wine_dbgstr_w(pvread[0].pwszVal));
 
+        PropVariantClear(&pvread[0]);
+        PropVariantClear(&pvread[1]);
         IPropertyStorage_Release(pPropStgRead);
         IPropertySetStorage_Release(pPropSetStg);
         urlA->lpVtbl->Release(urlA);
-- 
1.6.5


--------------070108060702030808050406--



More information about the wine-patches mailing list