changeset 8024:4f555a34e00f libavcodec

Fix mem leak. Patch by Ralf Terdic contact >AT< jswiff com
author benoit
date Mon, 13 Oct 2008 13:47:05 +0000
parents 76f6a08c9fe6
children 58a16a83f4e2
files libx264.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libx264.c	Mon Oct 13 07:42:11 2008 +0000
+++ b/libx264.c	Mon Oct 13 13:47:05 2008 +0000
@@ -124,6 +124,8 @@
 {
     X264Context *x4 = avctx->priv_data;
 
+    av_freep(&avctx->extradata);
+
     if(x4->enc)
         x264_encoder_close(x4->enc);