]> git.sesse.net Git - ffmpeg/commitdiff
h264: Fix memleaks on close, reset more fields
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 6 Dec 2011 21:40:43 +0000 (22:40 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 6 Dec 2011 23:47:41 +0000 (00:47 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/h264.c

index 17bbda840851fca7224582b2fdc1aa11a0c485ed..cb7e24961c055b545f5184c2297344a3e410c061 100644 (file)
@@ -4266,6 +4266,7 @@ av_cold int ff_h264_decode_end(AVCodecContext *avctx)
     H264Context *h = avctx->priv_data;
     MpegEncContext *s = &h->s;
 
+    ff_h264_remove_all_refs(h);
     ff_h264_free_context(h);
 
     MPV_common_end(s);