diff options
author | Slávek Banko <[email protected]> | 2013-10-28 11:07:53 +0100 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2013-10-28 11:07:53 +0100 |
commit | d1324133ee949acedcbf1776c8a80d3e28218c23 (patch) | |
tree | 0255949cb003cf04dad0da28cc338311618ac54c /kcontrol/input | |
parent | 9f0a2b5a83690c2add188180f8b4d332f93bdd42 (diff) | |
download | tdebase-d1324133ee949acedcbf1776c8a80d3e28218c23.tar.gz tdebase-d1324133ee949acedcbf1776c8a80d3e28218c23.zip |
Fix kcm mouse module crash
This resolves Bug 1688
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() |