diff libx264.c @ 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 47f50599b368
children 06ab8ac1a593
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);