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
@ -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…
x
Reference in New Issue
Block a user