diff options
-rw-r--r-- | tdecore/tdehw/tdehardwaredevices.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tdecore/tdehw/tdehardwaredevices.cpp b/tdecore/tdehw/tdehardwaredevices.cpp index 257a22a41..a5cbffc34 100644 --- a/tdecore/tdehw/tdehardwaredevices.cpp +++ b/tdecore/tdehw/tdehardwaredevices.cpp @@ -466,6 +466,7 @@ void TDEHardwareDevices::processHotPluggedHardware() { } } } + udev_device_unref(dev); } } @@ -2392,6 +2393,7 @@ TDEGenericDevice* TDEHardwareDevices::classifyUnknownDevice(udev_device* dev, TD struct udev_device *parentdev; parentdev = udev_device_new_from_syspath(m_udevStruct, parentsyspathudev.ascii()); devicenode = (udev_device_get_devnode(parentdev)); + udev_device_unref(parentdev); } } else if (usbInterfaceClass == 9) { |