From a71cc91001acefa82b5718ff540fdee40b0124e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Wed, 13 Nov 2019 12:18:21 +0100 Subject: [PATCH] iterator: Fix leak of the closure in Iterator::filter() --- gstreamer/src/iterator.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gstreamer/src/iterator.rs b/gstreamer/src/iterator.rs index af1c142f1..93a783190 100644 --- a/gstreamer/src/iterator.rs +++ b/gstreamer/src/iterator.rs @@ -93,7 +93,7 @@ where let func_box: Box bool + Send + Sync + 'static> = Box::new(func); let mut closure_value = glib::Value::from_type(from_glib(filter_boxed_get_type::())); - gobject_sys::g_value_set_boxed( + gobject_sys::g_value_take_boxed( closure_value.to_glib_none_mut().0, Arc::into_raw(Arc::new(func_box)) as gpointer, );