mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-15 06:38:57 +00:00
windows.gaming.input: Avoid leaking IDirectInputEffect reference (Valgrind).
This commit is contained in:
parent
dde9cef0ff
commit
c6da1739d1
|
@ -646,7 +646,6 @@ static HRESULT WINAPI motor_load_effect_async( IUnknown *invoker, IUnknown *para
|
|||
{
|
||||
if (effect->effect) IDirectInputEffect_Release( effect->effect );
|
||||
effect->effect = dinput_effect;
|
||||
IDirectInputEffect_AddRef( effect->effect );
|
||||
}
|
||||
|
||||
LeaveCriticalSection( &effect->cs );
|
||||
|
|
Loading…
Reference in a new issue