diff options
author | cutealien <cutealien@dfc29bdd-3216-0410-991c-e03cc46cb475> | 2022-11-19 16:41:11 +0000 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2023-03-24 17:09:11 +0100 |
commit | 6f3435f349e778af21f172d9c954e7cdb44efe7c (patch) | |
tree | 857516e69636eebe50ae6c1902750fb9373f4d38 | |
parent | 9f9d22ca332c3aca65b53162da316f3dd0e3a58d (diff) | |
download | irrlicht-6f3435f349e778af21f172d9c954e7cdb44efe7c.tar.xz |
Prevent potential 0 pointer access when release not acquired joystick.
Found by clang analyser. Not sure if it could really ever have happened, but won't hurt to fix
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@6443 dfc29bdd-3216-0410-991c-e03cc46cb475
-rw-r--r-- | source/Irrlicht/CIrrDeviceWin32.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/Irrlicht/CIrrDeviceWin32.cpp b/source/Irrlicht/CIrrDeviceWin32.cpp index 1033f9e..7b12232 100644 --- a/source/Irrlicht/CIrrDeviceWin32.cpp +++ b/source/Irrlicht/CIrrDeviceWin32.cpp @@ -121,8 +121,8 @@ namespace irr if (dev)
{
dev->Unacquire();
+ dev->Release();
}
- dev->Release();
}
if (DirectInputDevice)
|