Commit 5ab27e81 authored by Derek Buitenhuis's avatar Derek Buitenhuis Committed by Luca Barbato
Browse files

crav1e: rav1e_frame_unref: Use Box instead of Arc



Arc is already in the definition of Frame, and this causes
a double free if we don't.
Found-by: default avatarHank Donnay <hdonnay@gmail.com>
Signed-off-by: default avatarDerek Buitenhuis <derek.buitenhuis@gmail.com>
parent 1430273a
......@@ -194,7 +194,7 @@ pub unsafe extern "C" fn rav1e_frame_new(ctx: *const Context) -> *mut Frame {
#[no_mangle]
pub unsafe extern "C" fn rav1e_frame_unref(frame: *mut Frame) {
let _ = Arc::from_raw(frame);
let _ = Box::from_raw(frame);
}
/// Send the frame for encoding
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment