uri: drop use of GSlice

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3695>
This commit is contained in:
Tim-Philipp Müller 2023-01-08 00:47:38 +00:00 committed by GStreamer Marge Bot
parent 755f214a52
commit 267adee5b7

View file

@ -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 *