From 267adee5b75a2c5a403ca80c841d02e8464fc8ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Sun, 8 Jan 2023 00:47:38 +0000 Subject: [PATCH] uri: drop use of GSlice Part-of: --- subprojects/gstreamer/gst/gsturi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/subprojects/gstreamer/gst/gsturi.c b/subprojects/gstreamer/gst/gsturi.c index ae1fb72827..a3ca53f3f8 100644 --- a/subprojects/gstreamer/gst/gsturi.c +++ b/subprojects/gstreamer/gst/gsturi.c @@ -1004,7 +1004,7 @@ _gst_uri_new (void) g_return_val_if_fail (gst_is_initialized (), NULL); - uri = GST_URI_CAST (g_slice_new0 (GstUri)); + uri = g_new0 (GstUri, 1); if (uri) gst_mini_object_init (GST_MINI_OBJECT_CAST (uri), 0, gst_uri_get_type (), @@ -1031,7 +1031,7 @@ _gst_uri_free (GstUri * uri) memset (uri, 0xff, sizeof (*uri)); #endif - g_slice_free1 (sizeof (*uri), uri); + g_free (uri); } static GHashTable *