# HG changeset patch # User vitor # Date 1266690491 0 # Node ID a090d10c314f78ab89f03d7762bb9869a102497b # Parent 43ecdadf3bc19155d45f0524dbdd5e9ed00a717b Free encoder extradata in avcodec_close(). Should fix several small memory leaks when encoding (at least for asv, wma and aac). Fix also issue 1577. diff -r 43ecdadf3bc1 -r a090d10c314f utils.c --- a/utils.c Sat Feb 20 15:39:27 2010 +0000 +++ b/utils.c Sat Feb 20 18:28:11 2010 +0000 @@ -685,6 +685,8 @@ avctx->codec->close(avctx); avcodec_default_free_buffers(avctx); av_freep(&avctx->priv_data); + if(avctx->codec->encode) + av_freep(&avctx->extradata); avctx->codec = NULL; entangled_thread_counter--;