Commit c6da1739 authored by Rémi Bernon's avatar Rémi Bernon Committed by Alexandre Julliard

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

parent dde9cef0
...@@ -646,7 +646,6 @@ static HRESULT WINAPI motor_load_effect_async( IUnknown *invoker, IUnknown *para ...@@ -646,7 +646,6 @@ static HRESULT WINAPI motor_load_effect_async( IUnknown *invoker, IUnknown *para
{ {
if (effect->effect) IDirectInputEffect_Release( effect->effect ); if (effect->effect) IDirectInputEffect_Release( effect->effect );
effect->effect = dinput_effect; effect->effect = dinput_effect;
IDirectInputEffect_AddRef( effect->effect );
} }
LeaveCriticalSection( &effect->cs ); LeaveCriticalSection( &effect->cs );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment