mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-08-23 17:23:44 +08:00
release copy_q in visionbuf_free (#2121)
old-commit-hash: f71467b4504292dff6d49553baeb6f068ba99471
This commit is contained in:
@@ -110,6 +110,7 @@ void visionbuf_free(const VisionBuf* buf) {
|
||||
#if __OPENCL_VERSION__ >= 200
|
||||
clSVMFree(buf->ctx, buf->addr);
|
||||
#else
|
||||
clReleaseCommandQueue(buf->copy_q);
|
||||
munmap(buf->addr, buf->len);
|
||||
close(buf->fd);
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user