release copy_q in visionbuf_free (#2121)

This commit is contained in:
Dean Lee
2020-09-03 12:11:25 +08:00
committed by GitHub
parent 48b16b6b1c
commit f71467b450
+1
View File
@@ -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