From be9a91fd1224f92590456db04d89cb5b245dd02c Mon Sep 17 00:00:00 2001 From: Jakob Bornecrantz Date: Tue, 12 Oct 2021 20:39:52 +0100 Subject: [PATCH] d/dai: Explicitly close queue to avoid use after free errors from asan --- src/xrt/drivers/depthai/depthai_driver.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/xrt/drivers/depthai/depthai_driver.cpp b/src/xrt/drivers/depthai/depthai_driver.cpp index 5468a3ffb..c58e6882d 100644 --- a/src/xrt/drivers/depthai/depthai_driver.cpp +++ b/src/xrt/drivers/depthai/depthai_driver.cpp @@ -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);