diff options
author | René Stadler <rene.stadler@collabora.co.uk> | 2011-11-11 20:19:53 +0100 |
---|---|---|
committer | René Stadler <rene.stadler@collabora.co.uk> | 2011-11-11 20:19:53 +0100 |
commit | 7651fa27dc804cfb57fab046f53e3c7ae6b21ada (patch) | |
tree | 9bd979a943797b8047162eb7c58c1f45c9574557 /gst/audioconvert | |
parent | 94ce75319aa6c68ce52099a72a5de8389e990ee7 (diff) | |
download | gstreamer-plugins-base-7651fa27dc804cfb57fab046f53e3c7ae6b21ada.tar.gz |
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.
Diffstat (limited to 'gst/audioconvert')
-rw-r--r-- | gst/audioconvert/audioconvert.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |