windows.gaming.input: Reset spare CS pointer before deleting it.
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
d7701deddc
commit
c3c11d0803
|
@ -98,6 +98,7 @@ static ULONG WINAPI async_impl_Release( IWineAsyncInfoImpl *iface )
|
||||||
IAsyncInfo_Close( &impl->IAsyncInfo_iface );
|
IAsyncInfo_Close( &impl->IAsyncInfo_iface );
|
||||||
if (impl->param) IUnknown_Release( impl->param );
|
if (impl->param) IUnknown_Release( impl->param );
|
||||||
if (impl->invoker) IUnknown_Release( impl->invoker );
|
if (impl->invoker) IUnknown_Release( impl->invoker );
|
||||||
|
impl->cs.DebugInfo->Spare[0] = 0;
|
||||||
DeleteCriticalSection( &impl->cs );
|
DeleteCriticalSection( &impl->cs );
|
||||||
free( impl );
|
free( impl );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue