mirror of
https://github.com/wjwwood/serial.git
synced 2026-01-22 11:44:53 +08:00
Release io_iterator_t object when finished with it in list_ports_osx.cc.
This commit is contained in:
parent
d7084ce775
commit
42aa78ae98
@ -279,6 +279,7 @@ serial::list_ports(void)
|
|||||||
devices_found.push_back(port_info);
|
devices_found.push_back(port_info);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
IOObjectRelase(serial_port_iterator);
|
||||||
return devices_found;
|
return devices_found;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user