diff --git a/subprojects/gst-plugins-base/gst/typefind/gsttypefindfunctionsdata.c b/subprojects/gst-plugins-base/gst/typefind/gsttypefindfunctionsdata.c index b2c3d87ee5..55a7831396 100644 --- a/subprojects/gst-plugins-base/gst/typefind/gsttypefindfunctionsdata.c +++ b/subprojects/gst-plugins-base/gst/typefind/gsttypefindfunctionsdata.c @@ -35,5 +35,5 @@ sw_data_destroy (GstTypeFindData * sw_data) { if (G_LIKELY (sw_data->caps != NULL)) gst_caps_unref (sw_data->caps); - g_slice_free (GstTypeFindData, sw_data); + g_free (sw_data); } diff --git a/subprojects/gst-plugins-base/gst/typefind/gsttypefindfunctionsriff.c b/subprojects/gst-plugins-base/gst/typefind/gsttypefindfunctionsriff.c index fb9308d7c0..ba55219611 100644 --- a/subprojects/gst-plugins-base/gst/typefind/gsttypefindfunctionsriff.c +++ b/subprojects/gst-plugins-base/gst/typefind/gsttypefindfunctionsriff.c @@ -52,7 +52,7 @@ G_BEGIN_DECLS \ static gboolean \ G_PASTE(_private_type_find_riff_, typefind_name) (GstPlugin * plugin) \ { \ - GstTypeFindData *sw_data = g_slice_new (GstTypeFindData); \ + GstTypeFindData *sw_data = g_new (GstTypeFindData, 1); \ sw_data->data = (gpointer)_data; \ sw_data->size = 4; \ sw_data->probability = GST_TYPE_FIND_MAXIMUM; \ diff --git a/subprojects/gst-plugins-base/gst/typefind/gsttypefindfunctionsstartwith.c b/subprojects/gst-plugins-base/gst/typefind/gsttypefindfunctionsstartwith.c index 14092e9cc8..6109e9c9ab 100644 --- a/subprojects/gst-plugins-base/gst/typefind/gsttypefindfunctionsstartwith.c +++ b/subprojects/gst-plugins-base/gst/typefind/gsttypefindfunctionsstartwith.c @@ -53,7 +53,7 @@ G_BEGIN_DECLS \ static gboolean \ G_PASTE(_private_type_find_start_with_, typefind_name) (GstPlugin * plugin) \ { \ - GstTypeFindData *sw_data = g_slice_new (GstTypeFindData); \ + GstTypeFindData *sw_data = g_new (GstTypeFindData, 1); \ sw_data->data = (const guint8 *)_data; \ sw_data->size = _size; \ sw_data->probability = _probability; \