From cb90adfacd0a79895de4b32a354642f399a67563 Mon Sep 17 00:00:00 2001 From: Stefano Ceccherini Date: Thu, 10 Mar 2011 10:59:52 +0000 Subject: [PATCH] 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 --- src/kits/device/Joystick.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/kits/device/Joystick.cpp b/src/kits/device/Joystick.cpp index 88d60cc6f4..dd39996741 100644 --- a/src/kits/device/Joystick.cpp +++ b/src/kits/device/Joystick.cpp @@ -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));