From d2b61ae9dac0e38c8f2853a41a3fb194fd794cf7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Sat, 25 Mar 2017 16:42:05 +0100 Subject: Fix memory leak after processing udev_monitor MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- tdecore/tdehw/tdehardwaredevices.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tdecore/tdehw') 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 -- cgit v1.2.1