Mercurial > libavcodec.hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
8023:76f6a08c9fe6 | 8024:4f555a34e00f |
---|---|
122 static av_cold int | 122 static av_cold int |
123 X264_close(AVCodecContext *avctx) | 123 X264_close(AVCodecContext *avctx) |
124 { | 124 { |
125 X264Context *x4 = avctx->priv_data; | 125 X264Context *x4 = avctx->priv_data; |
126 | 126 |
127 av_freep(&avctx->extradata); | |
128 | |
127 if(x4->enc) | 129 if(x4->enc) |
128 x264_encoder_close(x4->enc); | 130 x264_encoder_close(x4->enc); |
129 | 131 |
130 return 0; | 132 return 0; |
131 } | 133 } |