mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-11-26 11:31:06 +00:00
Free memory of the correct type for the callback structs in appsink/appsrc
This commit is contained in:
parent
918d66375e
commit
c3b1c53812
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) {
|
unsafe extern "C" fn destroy_callbacks(ptr: gpointer) {
|
||||||
let _guard = CallbackGuard::new();
|
let _guard = CallbackGuard::new();
|
||||||
Box::<Box<AppSinkCallbacks>>::from_raw(ptr as *mut _);
|
Box::<AppSinkCallbacks>::from_raw(ptr as *mut _);
|
||||||
}
|
}
|
||||||
|
|
||||||
impl AppSink {
|
impl AppSink {
|
||||||
|
|
|
@ -80,7 +80,7 @@ unsafe extern "C" fn trampoline_seek_data(
|
||||||
|
|
||||||
unsafe extern "C" fn destroy_callbacks(ptr: gpointer) {
|
unsafe extern "C" fn destroy_callbacks(ptr: gpointer) {
|
||||||
let _guard = CallbackGuard::new();
|
let _guard = CallbackGuard::new();
|
||||||
Box::<Box<AppSrcCallbacks>>::from_raw(ptr as *mut _);
|
Box::<AppSrcCallbacks>::from_raw(ptr as *mut _);
|
||||||
}
|
}
|
||||||
|
|
||||||
impl AppSrc {
|
impl AppSrc {
|
||||||
|
|
Loading…
Reference in a new issue