fix RHD memory leak

pull/1385/head
ZwX1616 2020-04-16 17:31:59 -07:00 committed by GitHub
parent 86b72e570a
commit 6c5080fa98
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -71,6 +71,7 @@ DMonitoringResult dmonitoring_eval_frame(DMonitoringModelState* s, void* stream_
cropped_u_buf, cropped_width/2,
cropped_v_buf, cropped_width/2,
cropped_width, cropped_height);
delete[] premirror_cropped_buf;
}
uint8_t *resized_buf = new uint8_t[resized_width*resized_height*3/2];