diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2017-03-25 16:42:05 +0100 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2017-03-25 16:42:17 +0100 |
commit | a7009dd25221fc8922240948086d680a351785a6 (patch) | |
tree | d2d945cb1faaf362d7e58e06b4685d6063007d89 /tdecore | |
parent | 9ef769d0e58f8d77e006f77c3baad5d300260a45 (diff) | |
download | tdelibs-a7009dd25221fc8922240948086d680a351785a6.tar.gz tdelibs-a7009dd25221fc8922240948086d680a351785a6.zip |
Fix memory leak after processing udev_monitor
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit d2b61ae9dac0e38c8f2853a41a3fb194fd794cf7)
Diffstat (limited to 'tdecore')
-rw-r--r-- | tdecore/tdehw/tdehardwaredevices.cpp | 3 |
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 |