Commit 2543295a authored by Sven Baars's avatar Sven Baars Committed by Alexandre Julliard

dinput/tests: Fix some memory leaks (Valgrind).

parent 8f3a4746
......@@ -604,10 +604,14 @@ static void test_DirectInputJoyConfig8(void)
"IDirectInputJoyConfig8_GetConfig returned 0x%08x\n", hr);
if (SUCCEEDED(hr))
ok (SUCCEEDED(IDirectInput_CreateDevice(pDI, &info.guidInstance, &pDID, NULL)),
"IDirectInput_CreateDevice failed with guid from GetConfig hr = 0x%08x\n", hr);
{
hr = IDirectInput_CreateDevice(pDI, &info.guidInstance, &pDID, NULL);
ok (SUCCEEDED(hr), "IDirectInput_CreateDevice failed with guid from GetConfig hr = 0x%08x\n", hr);
IDirectInputDevice_Release(pDID);
}
}
IDirectInputJoyConfig8_Release(pDIJC);
IDirectInput_Release(pDI);
}
......
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