Unref udev monitor during events tearDown

This commit is contained in:
Teddy Reed 2015-02-01 03:00:09 -07:00
parent f96b498ae3
commit e4b369917b

View File

@ -37,6 +37,10 @@ Status UdevEventPublisher::setUp() {
void UdevEventPublisher::configure() {}
void UdevEventPublisher::tearDown() {
if (monitor_ != nullptr) {
udev_monitor_unref(monitor_);
}
if (handle_ != nullptr) {
udev_unref(handle_);
}