summaryrefslogtreecommitdiffstats
path: root/tdecore
diff options
context:
space:
mode:
Diffstat (limited to 'tdecore')
-rw-r--r--tdecore/tdehw/tdehardwaredevices.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/tdecore/tdehw/tdehardwaredevices.cpp b/tdecore/tdehw/tdehardwaredevices.cpp
index ab77b4ca8..61abed0c2 100644
--- a/tdecore/tdehw/tdehardwaredevices.cpp
+++ b/tdecore/tdehw/tdehardwaredevices.cpp
@@ -235,6 +235,9 @@ TDEHardwareDevices::~TDEHardwareDevices() {
close(m_procMountsFd);
// Tear down udev interface
+ if(m_udevMonitorStruct) {
+ udev_monitor_unref(m_udevMonitorStruct);
+ }
udev_unref(m_udevStruct);
// Delete members