mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-11-25 11:01:10 +00:00
Free memory of the correct type for the callback structs in appsink/appsrc
This commit is contained in:
parent
126159c762
commit
c06c12dc87
2 changed files with 2 additions and 2 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue