Commit 315f0e3f authored by Carl Eugen Hoyos's avatar Carl Eugen Hoyos

Fix possible double free when encoding using xvid.

parent dec126a9
...@@ -528,6 +528,7 @@ static av_cold int xvid_encode_close(AVCodecContext *avctx) { ...@@ -528,6 +528,7 @@ static av_cold int xvid_encode_close(AVCodecContext *avctx) {
if( x->twopassbuffer != NULL ) { if( x->twopassbuffer != NULL ) {
av_free(x->twopassbuffer); av_free(x->twopassbuffer);
av_free(x->old_twopassbuffer); av_free(x->old_twopassbuffer);
avctx->stats_out = NULL;
} }
av_free(x->twopassfile); av_free(x->twopassfile);
av_free(x->intra_matrix); av_free(x->intra_matrix);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment