sample: 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:56:23 +00:00 committed by GStreamer Marge Bot
parent f343d01f10
commit 19a6468a53

View file

@ -106,7 +106,7 @@ _gst_sample_free (GstSample * sample)
memset (sample, 0xff, sizeof (GstSample));
#endif
g_slice_free1 (sizeof (GstSample), sample);
g_free (sample);
}
/**
@ -129,7 +129,7 @@ gst_sample_new (GstBuffer * buffer, GstCaps * caps, const GstSegment * segment,
{
GstSample *sample;
sample = g_slice_new0 (GstSample);
sample = g_new0 (GstSample, 1);
GST_LOG ("new %p", sample);