release copy_q in visionbuf_free (#2121)

pull/2099/head
Dean Lee 5 years ago committed by GitHub
parent 48b16b6b1c
commit f71467b450
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      selfdrive/common/visionbuf_cl.c

@ -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

Loading…
Cancel
Save