Commit febdb0a1 authored by Gabriel Ivăncescu's avatar Gabriel Ivăncescu Committed by Alexandre Julliard

jscript/tests: Fix Date object leak in test_default_value.

parent 59e00860
...@@ -3069,6 +3069,7 @@ static void test_default_value(void) ...@@ -3069,6 +3069,7 @@ static void test_default_value(void)
V_VT(&v) = VT_EMPTY; V_VT(&v) = VT_EMPTY;
hres = IDispatch_Invoke(disp, DISPID_VALUE, &IID_NULL, 0, DISPATCH_PROPERTYGET, &dp, &v, NULL, NULL); hres = IDispatch_Invoke(disp, DISPID_VALUE, &IID_NULL, 0, DISPATCH_PROPERTYGET, &dp, &v, NULL, NULL);
ok(hres == E_UNEXPECTED, "Invoke failed: %08lx\n", hres); ok(hres == E_UNEXPECTED, "Invoke failed: %08lx\n", hres);
IDispatch_Release(disp);
hres = parse_script_expr(L"new Date()", &v, &script); hres = parse_script_expr(L"new Date()", &v, &script);
ok(hres == S_OK, "parse_script_expr failed: %08lx\n", hres); ok(hres == S_OK, "parse_script_expr failed: %08lx\n", hres);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment