d/dai: Explicitly close queue to avoid use after free errors from asan

This commit is contained in:
Jakob Bornecrantz 2021-10-12 20:39:52 +01:00
parent 6f22d4d819
commit be9a91fd12

View file

@ -338,6 +338,7 @@ depthai_destroy(struct depthai_fs *depthai)
os_thread_helper_destroy(&depthai->play_thread);
depthai->queue->close();
delete depthai->device;
free(depthai);