From 7651fa27dc804cfb57fab046f53e3c7ae6b21ada Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ren=C3=A9=20Stadler?= Date: Fri, 11 Nov 2011 20:19:53 +0100 Subject: [PATCH] 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. --- gst/audioconvert/audioconvert.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/audioconvert/audioconvert.c b/gst/audioconvert/audioconvert.c index 97dee20ee..8bea5efc6 100644 --- a/gst/audioconvert/audioconvert.c +++ b/gst/audioconvert/audioconvert.c @@ -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; -- 2.34.1