libs: pbutils: 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 16:59:42 +00:00 committed by GStreamer Marge Bot
parent 506c65aa27
commit 8bf59703a1

View file

@ -644,7 +644,7 @@ uridecodebin_pad_added_cb (GstElement * uridecodebin, GstPad * pad,
DISCO_UNLOCK (dc); DISCO_UNLOCK (dc);
return; return;
} }
ps = g_slice_new0 (PrivateStream); ps = g_new0 (PrivateStream, 1);
ps->dc = dc; ps->dc = dc;
ps->pad = pad; ps->pad = pad;
@ -722,7 +722,7 @@ error:
gst_object_unref (ps->queue); gst_object_unref (ps->queue);
if (ps->sink) if (ps->sink)
gst_object_unref (ps->sink); gst_object_unref (ps->sink);
g_slice_free (PrivateStream, ps); g_free (ps);
DISCO_UNLOCK (dc); DISCO_UNLOCK (dc);
return; return;
} }
@ -788,7 +788,7 @@ uridecodebin_pad_removed_cb (GstElement * uridecodebin, GstPad * pad,
} }
g_free (ps->stream_id); g_free (ps->stream_id);
g_slice_free (PrivateStream, ps); g_free (ps);
GST_DEBUG ("Done handling pad"); GST_DEBUG ("Done handling pad");
} }