diff --git a/subprojects/gstreamer/gst/gstclock.c b/subprojects/gstreamer/gst/gstclock.c index 365a0e1d79..ff3e2bac73 100644 --- a/subprojects/gstreamer/gst/gstclock.c +++ b/subprojects/gstreamer/gst/gstclock.c @@ -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); } /**