mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 00:36:51 +00:00
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:
parent
acc9024039
commit
629b427a13
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue