ulpfecenc: fix unmatched free() call

One must always match a g_slice_new with a g_slice_free and a g_new with
a g_free.  This was not the case for the internal ctx struct.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1761>
This commit is contained in:
Matthew Waters 2022-02-21 13:24:07 +11:00 committed by GStreamer Marge Bot
parent acc9024039
commit 629b427a13

View file

@ -508,7 +508,7 @@ gst_rtp_ulpfec_enc_stream_ctx_free (GstRtpUlpFecEncStreamCtx * ctx)
g_assert (0 == ctx->info_arr->len);
g_array_free (ctx->info_arr, TRUE);
g_array_free (ctx->scratch_buf, TRUE);
g_slice_free1 (sizeof (GstRtpUlpFecEncStreamCtx), ctx);
g_free (ctx);
}
static GstFlowReturn