From 5a2d643f9b3f44b5a707a33ab8a9353bb68b34cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Sat, 7 Jan 2023 19:41:31 +0000 Subject: [PATCH] bin: drop use of GSlice Part-of: --- subprojects/gstreamer/gst/gstbin.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/subprojects/gstreamer/gst/gstbin.c b/subprojects/gstreamer/gst/gstbin.c index 19b0fa62a4..fce96f3e8a 100644 --- a/subprojects/gstreamer/gst/gstbin.c +++ b/subprojects/gstreamer/gst/gstbin.c @@ -3266,7 +3266,7 @@ bin_bus_handler (GstBus * bus, GstMessage * message, GstBin * bin) static void free_bin_continue_data (BinContinueData * data) { - g_slice_free (BinContinueData, data); + g_free (data); } static void @@ -3436,7 +3436,7 @@ bin_handle_async_done (GstBin * bin, GstStateChangeReturn ret, "continue state change, pending %s", gst_element_state_get_name (pending)); - cont = g_slice_new (BinContinueData); + cont = g_new (BinContinueData, 1); /* cookie to detect concurrent state change */ cont->cookie = GST_ELEMENT_CAST (bin)->state_cookie;