wshom.ocx/tests: Fix a BSTR leak (Valgrind).

This commit is contained in:
Nikolay Sivov 2015-04-15 07:44:19 +03:00 committed by Alexandre Julliard
parent d0c8654d10
commit f44707cb11
1 changed files with 1 additions and 0 deletions

View File

@ -406,6 +406,7 @@ static void test_registry(void)
hr = IWshShell3_RegRead(sh3, name, &value);
ok(hr == S_OK, "got 0x%08x\n", hr);
ok(V_VT(&value) == (VT_ARRAY|VT_VARIANT), "got 0x%x\n", V_VT(&value));
SysFreeString(name);
dim = SafeArrayGetDim(V_ARRAY(&value));
ok(dim == 1, "got %u\n", dim);