destroy rgb_to_yuv_state (#2702)

pull/2745/head
Dean Lee 2020-12-11 11:39:46 +08:00 committed by GitHub
parent fef8d4093f
commit 1e9e31d6e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -129,6 +129,8 @@ CameraBuf::~CameraBuf() {
for (int i = 0; i < YUV_COUNT; i++) {
visionbuf_free(&yuv_ion[i]);
}
rgb_to_yuv_destroy(&rgb_to_yuv_state);
if (krnl_debayer) {
CL_CHECK(clReleaseKernel(krnl_debayer));
}