Module: wine Branch: master Commit: c6da1739d1e0c55438cc9cc704d8aebabbe10ade URL: https://gitlab.winehq.org/wine/wine/-/commit/c6da1739d1e0c55438cc9cc704d8aeb...
Author: Rémi Bernon rbernon@codeweavers.com Date: Sat May 13 13:38:30 2023 +0200
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 );