diff --git a/subprojects/gstreamer/gst/gstformat.c b/subprojects/gstreamer/gst/gstformat.c index 130fc77f18..b9f2560dfc 100644 --- a/subprojects/gstreamer/gst/gstformat.c +++ b/subprojects/gstreamer/gst/gstformat.c @@ -153,7 +153,7 @@ gst_format_register (const gchar * nick, const gchar * description) return query; g_mutex_lock (&mutex); - format = g_slice_new (GstFormatDefinition); + format = g_new (GstFormatDefinition, 1); format->value = (GstFormat) _n_values; format->nick = g_strdup (nick); format->description = g_strdup (description); diff --git a/subprojects/gstreamer/gst/gstmeta.c b/subprojects/gstreamer/gst/gstmeta.c index 9fc619860f..6068210c36 100644 --- a/subprojects/gstreamer/gst/gstmeta.c +++ b/subprojects/gstreamer/gst/gstmeta.c @@ -78,7 +78,7 @@ typedef struct static void free_info (gpointer data) { - g_slice_free (GstMetaInfoImpl, data); + g_free (data); } void @@ -394,7 +394,7 @@ gst_meta_register (GType api, const gchar * impl, gsize size, if (type == G_TYPE_INVALID) return NULL; - info = (GstMetaInfo *) g_slice_new (GstMetaInfoImpl); + info = (GstMetaInfo *) g_new (GstMetaInfoImpl, 1); info->api = api; info->type = type; info->size = size;