mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-06 05:52:12 +08:00
fix camerad not exiting cleanly (#2768)
Co-authored-by: Comma Device <device@comma.ai> old-commit-hash: a96857f1aa068da241ad8b234addd76b23d1e594
This commit is contained in:
@@ -131,7 +131,9 @@ void visionbuf_sync(const VisionBuf* buf, int dir) {
|
||||
}
|
||||
|
||||
void visionbuf_free(const VisionBuf* buf) {
|
||||
CL_CHECK(clReleaseMemObject(buf->buf_cl));
|
||||
if (buf->buf_cl) {
|
||||
CL_CHECK(clReleaseMemObject(buf->buf_cl));
|
||||
}
|
||||
munmap(buf->addr, buf->mmap_len);
|
||||
close(buf->fd);
|
||||
struct ion_handle_data handle_data = {
|
||||
|
||||
Reference in New Issue
Block a user