diff --git a/subprojects/gstreamer/tests/check/gst/gstelementfactory.c b/subprojects/gstreamer/tests/check/gst/gstelementfactory.c index 7d722470c6..0d4dd96280 100644 --- a/subprojects/gstreamer/tests/check/gst/gstelementfactory.c +++ b/subprojects/gstreamer/tests/check/gst/gstelementfactory.c @@ -19,6 +19,7 @@ * Boston, MA 02110-1301, USA. */ #include "../../gst/gst_private.h" +#include "../../gst/glib-compat-private.h" #include diff --git a/subprojects/gstreamer/tests/check/gst/gstmemory.c b/subprojects/gstreamer/tests/check/gst/gstmemory.c index 1cde398b48..def8bcb235 100644 --- a/subprojects/gstreamer/tests/check/gst/gstmemory.c +++ b/subprojects/gstreamer/tests/check/gst/gstmemory.c @@ -588,7 +588,7 @@ static GstMemory * _my_opaque_alloc (GstAllocator * allocator, gsize size, GstAllocationParams * params) { - MyOpaqueMemory *mem = g_slice_new (MyOpaqueMemory); + MyOpaqueMemory *mem = g_new (MyOpaqueMemory, 1); gsize maxsize = size + params->prefix + params->padding; gst_memory_init (GST_MEMORY_CAST (mem), params->flags, allocator, NULL, @@ -605,7 +605,7 @@ _my_opaque_free (GstAllocator * allocator, GstMemory * mem) MyOpaqueMemory *mmem = (MyOpaqueMemory *) mem; g_free (mmem->data); - g_slice_free (MyOpaqueMemory, mmem); + g_free (mmem); } static gpointer diff --git a/subprojects/gstreamer/tests/check/libs/gsttestclock.c b/subprojects/gstreamer/tests/check/libs/gsttestclock.c index 386a1910f9..21cb2594d0 100644 --- a/subprojects/gstreamer/tests/check/libs/gsttestclock.c +++ b/subprojects/gstreamer/tests/check/libs/gsttestclock.c @@ -116,7 +116,7 @@ gst_test_util_wait_for_clock_id_begin (GstTestClock * test_clock, GstClockID id, { GtuClockWaitContext *wait_ctx; - wait_ctx = g_slice_new (GtuClockWaitContext); + wait_ctx = g_new (GtuClockWaitContext, 1); wait_ctx->test_clock = gst_object_ref (test_clock); wait_ctx->reference = gst_clock_get_time (GST_CLOCK (wait_ctx->test_clock)); wait_ctx->id = gst_clock_id_ref (id); @@ -179,7 +179,7 @@ gst_test_util_wait_for_clock_id_end (GtuClockWaitContext * wait_ctx) gst_clock_id_unref (wait_ctx->id); gst_object_unref (wait_ctx->test_clock); - g_slice_free (GtuClockWaitContext, wait_ctx); + g_free (wait_ctx); return status; }