mirror of
https://github.com/wjwwood/serial.git
synced 2026-01-23 04:04:54 +08:00
Release io_iterator_t object when finished with it in list_ports_osx.cc.
This commit is contained in:
parent
2473a8770f
commit
cdd2fd17c2
@ -278,7 +278,8 @@ 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