Fix memory leak after processing udev_monitor

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit d2b61ae9da)
pull/16/head
Slávek Banko 8 years ago
parent 9ef769d0e5
commit a7009dd252

@ -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

Loading…
Cancel
Save