From c6da1739d1e0c55438cc9cc704d8aebabbe10ade Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Bernon?= Date: Sat, 13 May 2023 13:38:30 +0200 Subject: [PATCH] windows.gaming.input: Avoid leaking IDirectInputEffect reference (Valgrind). --- dlls/windows.gaming.input/force_feedback.c | 1 - 1 file changed, 1 deletion(-) diff --git a/dlls/windows.gaming.input/force_feedback.c b/dlls/windows.gaming.input/force_feedback.c index cff3c184bf9..39a450f3778 100644 --- a/dlls/windows.gaming.input/force_feedback.c +++ b/dlls/windows.gaming.input/force_feedback.c @@ -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 );