diff options
Diffstat (limited to 'dinput')
-rw-r--r-- | dinput/dinput.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/dinput/dinput.cpp b/dinput/dinput.cpp index 8909921a..226d3277 100644 --- a/dinput/dinput.cpp +++ b/dinput/dinput.cpp @@ -33,8 +33,10 @@ dinput_handle::di_t dinput_handle::make_di() void dinput_handle::di_t::free_di() { if (handle && *handle) + { (*handle)->Release(); - *handle = nullptr; + *handle = nullptr; + } handle = nullptr; } |