summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 a5cbffc34..5669fe55c 100644
--- a/tdecore/tdehw/tdehardwaredevices.cpp
+++ b/tdecore/tdehw/tdehardwaredevices.cpp
@@ -236,6 +236,9 @@ TDEHardwareDevices::~TDEHardwareDevices() {
close(m_procMountsFd);
// Tear down udev interface
+ if(m_udevMonitorStruct) {
+ udev_monitor_unref(m_udevMonitorStruct);
+ }
udev_unref(m_udevStruct);
// Delete members