Author: jackburton Date: 2011-03-10 11:59:52 +0100 (Thu, 10 Mar 2011) New Revision: 40902 Changeset: http://dev.haiku-os.org/changeset/40902 Modified: haiku/trunk/src/kits/device/Joystick.cpp Log: Partly revert the previous commit: don't reset ffd in the destructor since it's useless. Modified: haiku/trunk/src/kits/device/Joystick.cpp =================================================================== --- haiku/trunk/src/kits/device/Joystick.cpp 2011-03-10 10:17:30 UTC (rev 40901) +++ haiku/trunk/src/kits/device/Joystick.cpp 2011-03-10 10:59:52 UTC (rev 40902) @@ -62,10 +62,8 @@ 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));