mirror of
https://github.com/minetest/irrlicht.git
synced 2024-12-25 15:42:25 +01:00
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
fc96c50e53
commit
817d59f379
@ -117,9 +117,9 @@ namespace irr
|
|||||||
if (dev)
|
if (dev)
|
||||||
{
|
{
|
||||||
dev->Unacquire();
|
dev->Unacquire();
|
||||||
}
|
|
||||||
dev->Release();
|
dev->Release();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (DirectInputDevice)
|
if (DirectInputDevice)
|
||||||
DirectInputDevice->Release();
|
DirectInputDevice->Release();
|
||||||
|
Loading…
Reference in New Issue
Block a user