Commit c06c12dc authored by Sebastian Dröge's avatar Sebastian Dröge 🍵

Free memory of the correct type for the callback structs in appsink/appsrc

parent 126159c7
......@@ -79,7 +79,7 @@ unsafe extern "C" fn trampoline_new_sample(
unsafe extern "C" fn destroy_callbacks(ptr: gpointer) {
let _guard = CallbackGuard::new();
Box::<Box<AppSinkCallbacks>>::from_raw(ptr as *mut _);
Box::<AppSinkCallbacks>::from_raw(ptr as *mut _);
}
impl AppSink {
......
......@@ -80,7 +80,7 @@ unsafe extern "C" fn trampoline_seek_data(
unsafe extern "C" fn destroy_callbacks(ptr: gpointer) {
let _guard = CallbackGuard::new();
Box::<Box<AppSrcCallbacks>>::from_raw(ptr as *mut _);
Box::<AppSrcCallbacks>::from_raw(ptr as *mut _);
}
impl AppSrc {
......
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