Author: cwittich
Date: Thu Mar 4 13:52:23 2010
New Revision: 45828
URL:
http://svn.reactos.org/svn/reactos?rev=45828&view=rev
Log:
[BROWSEUI_WINETEST]
sync browseui_winetest to wine 1.1.39
Modified:
trunk/rostests/winetests/browseui/autocomplete.c
Modified: trunk/rostests/winetests/browseui/autocomplete.c
URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/winetests/browseui/autoco…
==============================================================================
--- trunk/rostests/winetests/browseui/autocomplete.c [iso-8859-1] (original)
+++ trunk/rostests/winetests/browseui/autocomplete.c [iso-8859-1] Thu Mar 4 13:52:23
2010
@@ -219,6 +219,7 @@
ole_ok(obj->lpVtbl->Next(obj, 1, &wstr, &i)); \
ok(i == 1, "Expected i == 1, got %d\n", i); \
ok(str[0] == wstr[0], "String mismatch\n"); \
+ CoTaskMemFree(wstr); \
}
#define expect_end(obj) \
@@ -280,9 +281,13 @@
ole_ok(obj->lpVtbl->Next(obj, 15, wstrtab, &i));
ok(i == 1, "Expected i == 1, got %d\n", i);
+ CoTaskMemFree(wstrtab[0]);
ole_ok(obj->lpVtbl->Next(obj, 15, wstrtab, &i));
+ CoTaskMemFree(wstrtab[0]);
ole_ok(obj->lpVtbl->Next(obj, 15, wstrtab, &i));
+ CoTaskMemFree(wstrtab[0]);
ole_ok(obj->lpVtbl->Next(obj, 15, wstrtab, &i));
+ CoTaskMemFree(wstrtab[0]);
ole_ok(acl->lpVtbl->Expand(acl, exp));
ok(acl1->expcount == 2, "expcount - expected 1, got %d\n",
acl1->expcount);
ok(acl2->expcount == 0 /* XP */ || acl2->expcount == 2 /* Vista */,
@@ -316,6 +321,9 @@
ok(mgr->lpVtbl->Release(mgr) == 0, "Unexpected references\n");
ok(acl1->ref == 1, "acl1 not released\n");
ok(acl2->ref == 1, "acl2 not released\n");
+
+ CoTaskMemFree(acl1);
+ CoTaskMemFree(acl2);
}
START_TEST(autocomplete)