diff options
author | Timothy Pearson <[email protected]> | 2013-10-28 14:06:47 -0500 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2013-10-28 14:06:47 -0500 |
commit | 740cdbc24975f0469962aea07732dddf6aee5b78 (patch) | |
tree | 52da2c654a5b0cc041f162d6d4f81e3ff886902b /kcontrol/input | |
parent | a039120e05fd8c03569e1135a30bbbb797e887b2 (diff) | |
parent | d1324133ee949acedcbf1776c8a80d3e28218c23 (diff) | |
download | tdebase-740cdbc24975f0469962aea07732dddf6aee5b78.tar.gz tdebase-740cdbc24975f0469962aea07732dddf6aee5b78.zip |
Merge branch 'master' of http://scm.trinitydesktop.org/scm/git/tdebase
Diffstat (limited to 'kcontrol/input')
-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() |