fix camerad not exiting cleanly (#2768)

Co-authored-by: Comma Device <device@comma.ai>
This commit is contained in:
Adeeb Shihadeh
2020-12-12 13:55:24 -08:00
committed by GitHub
parent 6a151dcd9c
commit a96857f1aa
+3 -1
View File
@@ -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 = {