diff --git a/subprojects/gstreamer/gst/gstcaps.c b/subprojects/gstreamer/gst/gstcaps.c index 28a7dfe0ba..cee6e820c4 100644 --- a/subprojects/gstreamer/gst/gstcaps.c +++ b/subprojects/gstreamer/gst/gstcaps.c @@ -222,7 +222,7 @@ _gst_caps_free (GstCaps * caps) memset (caps, 0xff, sizeof (GstCapsImpl)); #endif - g_slice_free1 (sizeof (GstCapsImpl), caps); + g_free (caps); } static void @@ -255,7 +255,7 @@ gst_caps_new_empty (void) { GstCaps *caps; - caps = (GstCaps *) g_slice_new (GstCapsImpl); + caps = (GstCaps *) g_new (GstCapsImpl, 1); gst_caps_init (caps); diff --git a/subprojects/gstreamer/gst/gstcapsfeatures.c b/subprojects/gstreamer/gst/gstcapsfeatures.c index 243837f487..d81169c733 100644 --- a/subprojects/gstreamer/gst/gstcapsfeatures.c +++ b/subprojects/gstreamer/gst/gstcapsfeatures.c @@ -180,7 +180,7 @@ gst_caps_features_new_empty (void) { GstCapsFeatures *features; - features = g_slice_new (GstCapsFeatures); + features = g_new (GstCapsFeatures, 1); features->type = _gst_caps_features_type; features->parent_refcount = NULL; features->array = g_array_new (FALSE, FALSE, sizeof (GQuark)); @@ -431,7 +431,7 @@ gst_caps_features_free (GstCapsFeatures * features) #endif GST_TRACE ("free caps features %p", features); - g_slice_free (GstCapsFeatures, features); + g_free (features); } /**