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 <>
Signed-off-by: default avatarDerek Buitenhuis <>
parent 1430273a
......@@ -194,7 +194,7 @@ pub unsafe extern "C" fn rav1e_frame_new(ctx: *const Context) -> *mut Frame {
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