From a170fa4f4638c2d9ae7fbd8d61f0c35c3be1c443 Mon Sep 17 00:00:00 2001 From: He Junyan Date: Thu, 28 Mar 2024 16:29:50 +0800 Subject: [PATCH] va: {av1, vp9}enc: Use g_free() to free frames Part-of: --- subprojects/gst-plugins-bad/sys/va/gstvaav1enc.c | 2 +- subprojects/gst-plugins-bad/sys/va/gstvavp9enc.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/subprojects/gst-plugins-bad/sys/va/gstvaav1enc.c b/subprojects/gst-plugins-bad/sys/va/gstvaav1enc.c index 20f01a52af..eb6419dc3d 100644 --- a/subprojects/gst-plugins-bad/sys/va/gstvaav1enc.c +++ b/subprojects/gst-plugins-bad/sys/va/gstvaav1enc.c @@ -521,7 +521,7 @@ gst_va_av1_enc_frame_free (gpointer pframe) GstVaAV1EncFrame *frame = pframe; g_clear_pointer (&frame->picture, gst_va_encode_picture_free); - g_slice_free (GstVaAV1EncFrame, frame); + g_free (frame); } static gboolean diff --git a/subprojects/gst-plugins-bad/sys/va/gstvavp9enc.c b/subprojects/gst-plugins-bad/sys/va/gstvavp9enc.c index cab946b128..76947958ff 100644 --- a/subprojects/gst-plugins-bad/sys/va/gstvavp9enc.c +++ b/subprojects/gst-plugins-bad/sys/va/gstvavp9enc.c @@ -285,7 +285,7 @@ gst_va_vp9_enc_frame_free (gpointer pframe) GstVaVp9EncFrame *frame = pframe; g_clear_pointer (&frame->picture, gst_va_encode_picture_free); - g_slice_free (GstVaVp9EncFrame, frame); + g_free (frame); } static gboolean