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:
@@ -62,10 +62,8 @@ BJoystick::BJoystick()
|
|||||||
|
|
||||||
BJoystick::~BJoystick()
|
BJoystick::~BJoystick()
|
||||||
{
|
{
|
||||||
if (ffd >= 0) {
|
if (ffd >= 0)
|
||||||
close(ffd);
|
close(ffd);
|
||||||
ffd = -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
for (int32 count = fDevices->CountItems() - 1; count >= 0; count--) {
|
for (int32 count = fDevices->CountItems() - 1; count >= 0; count--) {
|
||||||
free(fDevices->RemoveItem(count));
|
free(fDevices->RemoveItem(count));
|
||||||
|
|||||||
Reference in New Issue
Block a user