[FFmpeg-cvslog] r21923 - trunk/libavcodec/utils.c
vitor
subversion
Sat Feb 20 19:28:11 CET 2010
Author: vitor
Date: Sat Feb 20 19:28:11 2010
New Revision: 21923
Log:
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.
Modified:
trunk/libavcodec/utils.c
Modified: trunk/libavcodec/utils.c
==============================================================================
--- trunk/libavcodec/utils.c Sat Feb 20 17:02:48 2010 (r21922)
+++ trunk/libavcodec/utils.c Sat Feb 20 19:28:11 2010 (r21923)
@@ -685,6 +685,8 @@ av_cold int avcodec_close(AVCodecContext
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--;
More information about the ffmpeg-cvslog
mailing list