File kdebase3-trinity-fix-mouse-module-crash.diff of Package kdebase3

commit d1324133ee949acedcbf1776c8a80d3e28218c23
Author: Slávek Banko <slavek.banko@axis.cz>
Date:   1382954873 +0100

    Fix kcm mouse module crash
    This resolves Bug 1688

diff --git a/kcontrol/input/logitechmouse.cpp b/kcontrol/input/logitechmouse.cpp
index 0e2f6f1..1b77896 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()