Fix memory leak after processing udev_monitor

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/1/head
Slávek Banko 8 years ago
parent 1a5bc0e4ff
commit d2b61ae9da

@ -236,6 +236,9 @@ TDEHardwareDevices::~TDEHardwareDevices() {
close(m_procMountsFd); close(m_procMountsFd);
// Tear down udev interface // Tear down udev interface
if(m_udevMonitorStruct) {
udev_monitor_unref(m_udevMonitorStruct);
}
udev_unref(m_udevStruct); udev_unref(m_udevStruct);
// Delete members // Delete members

Loading…
Cancel
Save