mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-01 04:36:07 +00:00
d/rs: clean up device list
This commit is contained in:
parent
9febede5c6
commit
6dcf10a4fc
|
@ -149,6 +149,8 @@ create_6dof(struct rs_6dof *rs)
|
|||
int dev_count = rs2_get_device_count(device_list, &e);
|
||||
CHECK_RS2();
|
||||
|
||||
rs2_delete_device_list(device_list);
|
||||
|
||||
U_LOG_D("There are %d connected RealSense devices.", dev_count);
|
||||
if (0 == dev_count) {
|
||||
close_6dof(rs);
|
||||
|
|
Loading…
Reference in a new issue