Partly revert the previous commit: don't reset ffd in the destructor since
it's useless. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40902 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
73bf85cacb
commit
cb90adfacd
@ -62,10 +62,8 @@ BJoystick::BJoystick()
|
||||
|
||||
BJoystick::~BJoystick()
|
||||
{
|
||||
if (ffd >= 0) {
|
||||
if (ffd >= 0)
|
||||
close(ffd);
|
||||
ffd = -1;
|
||||
}
|
||||
|
||||
for (int32 count = fDevices->CountItems() - 1; count >= 0; count--) {
|
||||
free(fDevices->RemoveItem(count));
|
||||
|
Loading…
Reference in New Issue
Block a user