windows.gaming.input: Avoid leaking IDirectInputEffect reference (Valgrind).

This commit is contained in:
Rémi Bernon 2023-05-13 13:38:30 +02:00 committed by Alexandre Julliard
parent dde9cef0ff
commit c6da1739d1

View file

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