diff --git a/subprojects/gst-plugins-good/ext/vpx/gstvp8enc.c b/subprojects/gst-plugins-good/ext/vpx/gstvp8enc.c index 93ef43e83b..5222c970a1 100644 --- a/subprojects/gst-plugins-good/ext/vpx/gstvp8enc.c +++ b/subprojects/gst-plugins-good/ext/vpx/gstvp8enc.c @@ -89,11 +89,11 @@ static void gst_vp8_enc_user_data_free (GstVP8EncUserData * user_data) { if (user_data->image) - g_slice_free (vpx_image_t, user_data->image); + g_free (user_data->image); g_list_foreach (user_data->invisible, (GFunc) _gst_mini_object_unref0, NULL); g_list_free (user_data->invisible); - g_slice_free (GstVP8EncUserData, user_data); + g_free (user_data); } static vpx_codec_iface_t *gst_vp8_enc_get_algo (GstVPXEnc * enc); @@ -317,7 +317,7 @@ gst_vp8_enc_process_frame_user_data (GstVPXEnc * enc, } if (user_data->image) - g_slice_free (vpx_image_t, user_data->image); + g_free (user_data->image); user_data->image = NULL; return user_data; } @@ -343,7 +343,7 @@ gst_vp8_enc_set_frame_user_data (GstVPXEnc * enc, GstVideoCodecFrame * frame, vpx_image_t * image) { GstVP8EncUserData *user_data; - user_data = g_slice_new0 (GstVP8EncUserData); + user_data = g_new0 (GstVP8EncUserData, 1); user_data->image = image; gst_video_codec_frame_set_user_data (frame, user_data, (GDestroyNotify) gst_vp8_enc_user_data_free); diff --git a/subprojects/gst-plugins-good/ext/vpx/gstvp9enc.c b/subprojects/gst-plugins-good/ext/vpx/gstvp9enc.c index eb75fa1d0c..e966e000c6 100644 --- a/subprojects/gst-plugins-good/ext/vpx/gstvp9enc.c +++ b/subprojects/gst-plugins-good/ext/vpx/gstvp9enc.c @@ -643,7 +643,7 @@ gst_vp9_enc_handle_invisible_frame_buffer (GstVPXEnc * enc, void *user_data, static void gst_vp9_enc_user_data_free (vpx_image_t * image) { - g_slice_free (vpx_image_t, image); + g_free (image); } static void diff --git a/subprojects/gst-plugins-good/ext/vpx/gstvpxenc.c b/subprojects/gst-plugins-good/ext/vpx/gstvpxenc.c index 612a7a59f1..2676d89809 100644 --- a/subprojects/gst-plugins-good/ext/vpx/gstvpxenc.c +++ b/subprojects/gst-plugins-good/ext/vpx/gstvpxenc.c @@ -2225,7 +2225,7 @@ gst_vpx_enc_finish (GstVideoEncoder * video_encoder) static vpx_image_t * gst_vpx_enc_buffer_to_image (GstVPXEnc * enc, GstVideoFrame * frame) { - vpx_image_t *image = g_slice_new (vpx_image_t); + vpx_image_t *image = g_new (vpx_image_t, 1); memcpy (image, &enc->image, sizeof (*image));