forked from Mirrorlandia_minetest/irrlicht
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
This commit is contained in:
parent
9f9d22ca33
commit
6f3435f349
@ -121,8 +121,8 @@ namespace irr
|
||||
if (dev)
|
||||
{
|
||||
dev->Unacquire();
|
||||
dev->Release();
|
||||
}
|
||||
dev->Release();
|
||||
}
|
||||
|
||||
if (DirectInputDevice)
|
||||
|
Loading…
Reference in New Issue
Block a user