diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2017-03-22 03:36:22 +0100 | 
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2017-03-22 03:36:22 +0100 | 
| commit | ef9f0f7a29b0e11646030e1a8455740e442f0def (patch) | |
| tree | 1dce615b67faf1cf92e412cc8e212c6ad5c31474 /dinput | |
| parent | 895daccda1453bf3d1fd99ed4a02087761e9643e (diff) | |
[COVERITY] dinput: fix possible null pointer dereference
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;  } | 
