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

Signed-off-by: Sven Baars <sven.wine@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Sven Baars 2019-01-29 00:10:59 +01:00 committed by Alexandre Julliard
parent 8f3a474655
commit 2543295a15
1 changed files with 6 additions and 2 deletions

View File

@ -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);
}