dplayx/tests: Fix memory leaks (valgrind).
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
98a2465abd
commit
00f6588c72
|
@ -245,6 +245,7 @@ static BOOL DP_DestroyDirectPlay2( LPVOID lpDP )
|
||||||
|
|
||||||
NS_DeleteSessionCache( This->dp2->lpNameServerData );
|
NS_DeleteSessionCache( This->dp2->lpNameServerData );
|
||||||
|
|
||||||
|
HeapFree( GetProcessHeap(), 0, This->dp2->dplspData.lpCB);
|
||||||
HeapFree( GetProcessHeap(), 0, This->dp2->lpSessionDesc );
|
HeapFree( GetProcessHeap(), 0, This->dp2->lpSessionDesc );
|
||||||
|
|
||||||
IDirectPlaySP_Release( This->dp2->spData.lpISP );
|
IDirectPlaySP_Release( This->dp2->spData.lpISP );
|
||||||
|
@ -4360,8 +4361,10 @@ static HRESULT WINAPI IDirectPlay4AImpl_EnumConnections( IDirectPlay4A *iface,
|
||||||
if( !lpEnumCallback( &serviceProviderGUID, lpAddressBuffer, dwAddressBufferSize,
|
if( !lpEnumCallback( &serviceProviderGUID, lpAddressBuffer, dwAddressBufferSize,
|
||||||
&dpName, dwFlags, lpContext ) )
|
&dpName, dwFlags, lpContext ) )
|
||||||
{
|
{
|
||||||
|
HeapFree( GetProcessHeap(), 0, lpAddressBuffer );
|
||||||
return DP_OK;
|
return DP_OK;
|
||||||
}
|
}
|
||||||
|
HeapFree( GetProcessHeap(), 0, lpAddressBuffer );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue