diff options
Diffstat (limited to 'kcontrol')
-rw-r--r-- | kcontrol/input/logitechmouse.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/kcontrol/input/logitechmouse.cpp b/kcontrol/input/logitechmouse.cpp index 0e2f6f1d3..1b77896d8 100644 --- a/kcontrol/input/logitechmouse.cpp +++ b/kcontrol/input/logitechmouse.cpp @@ -115,7 +115,9 @@ LogitechMouse::LogitechMouse( struct usb_device *usbDev, int mouseCapabilityFlag LogitechMouse::~LogitechMouse() { - usb_close( m_usbDeviceHandle ); + if (m_usbDeviceHandle != 0) { + usb_close( m_usbDeviceHandle ); + } } void LogitechMouse::initCordlessStatusReporting() |