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:
Stefano Ceccherini 2011-03-10 10:59:52 +00:00
parent 73bf85cacb
commit cb90adfacd

View File

@ -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));