mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-12 10:25:33 +00:00
audioconvert: fix leak of channel matrix
gst_channel_mix_unset_matrix relies on the channel count to free the matrix array, so run it before resetting it to zero with gst_audio_info_init.
This commit is contained in:
parent
94ce75319a
commit
7651fa27dc
1 changed files with 1 additions and 1 deletions
|
@ -676,9 +676,9 @@ audio_convert_clean_context (AudioConvertCtx * ctx)
|
|||
g_return_val_if_fail (ctx != NULL, FALSE);
|
||||
|
||||
gst_audio_quantize_free (ctx);
|
||||
gst_channel_mix_unset_matrix (ctx);
|
||||
gst_audio_info_init (&ctx->in);
|
||||
gst_audio_info_init (&ctx->out);
|
||||
gst_channel_mix_unset_matrix (ctx);
|
||||
|
||||
g_free (ctx->tmpbuf);
|
||||
ctx->tmpbuf = NULL;
|
||||
|
|
Loading…
Reference in a new issue