mirror of
https://github.com/reactos/wine.git
synced 2024-12-05 02:07:16 +00:00
dplayx/tests: Free IDirectPlayLobby objects.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
2bb3636a14
commit
e16abdfad1
@ -700,7 +700,7 @@ static void init_TCPIP_provider( IDirectPlay4 *pDP, LPCSTR strIPAddressString, W
|
||||
checkHR( DP_OK, hr );
|
||||
|
||||
HeapFree( GetProcessHeap(), 0, pAddress );
|
||||
|
||||
IDirectPlayLobby_Release(pDPL);
|
||||
}
|
||||
|
||||
static BOOL CALLBACK EnumSessions_cb_join( LPCDPSESSIONDESC2 lpThisSD,
|
||||
@ -940,6 +940,8 @@ static BOOL CALLBACK EnumConnections_cb( LPCGUID lpguidSP,
|
||||
|
||||
callbackData->dwCounter1++;
|
||||
|
||||
IDirectPlayLobby_Release(pDPL);
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
@ -3075,7 +3077,7 @@ static void test_GetPlayerAddress(void)
|
||||
if ( hr == DP_OK )
|
||||
{
|
||||
todo_wine win_skip( "GetPlayerAddress not implemented\n" );
|
||||
return;
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
init_TCPIP_provider( pDP[0], "127.0.0.1", 0 );
|
||||
@ -3171,9 +3173,11 @@ static void test_GetPlayerAddress(void)
|
||||
|
||||
|
||||
HeapFree( GetProcessHeap(), 0, lpData );
|
||||
|
||||
cleanup:
|
||||
IDirectPlayX_Release( pDP[0] );
|
||||
IDirectPlayX_Release( pDP[1] );
|
||||
|
||||
IDirectPlayLobby_Release(pDPL);
|
||||
}
|
||||
|
||||
/* GetPlayerFlags */
|
||||
|
Loading…
Reference in New Issue
Block a user