summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2013-10-28 11:07:53 +0100
committerSlávek Banko <slavek.banko@axis.cz>2013-10-28 11:07:53 +0100
commitd1324133ee949acedcbf1776c8a80d3e28218c23 (patch)
tree0255949cb003cf04dad0da28cc338311618ac54c
parent9f0a2b5a83690c2add188180f8b4d332f93bdd42 (diff)
downloadtdebase-d1324133ee949acedcbf1776c8a80d3e28218c23.tar.gz
tdebase-d1324133ee949acedcbf1776c8a80d3e28218c23.zip
Fix kcm mouse module crash
This resolves Bug 1688
-rw-r--r--kcontrol/input/logitechmouse.cpp4
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()