clockentry: 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:48:46 +00:00 committed by GStreamer Marge Bot
parent 1c8bb3f8db
commit 384c4f1bef

View file

@ -247,7 +247,7 @@ gst_clock_entry_new (GstClock * clock, GstClockTime time,
{
GstClockEntry *entry;
entry = (GstClockEntry *) g_slice_new0 (GstClockEntryImpl);
entry = (GstClockEntry *) g_new0 (GstClockEntryImpl, 1);
/* FIXME: add tracer hook for struct allocations such as clock entries */
@ -382,7 +382,7 @@ _gst_clock_id_free (GstClockID id)
/* FIXME: add tracer hook for struct allocations such as clock entries */
g_slice_free (GstClockEntryImpl, (GstClockEntryImpl *) id);
g_free (id);
}
/**