aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-12-06 22:40:43 +0100
committerMichael Niedermayer <michaelni@gmx.at>2011-12-07 00:47:41 +0100
commit6287a356e335163581b8b8dca71cdc42f9b739d8 (patch)
treed17e615d15852b9806cc6addcf4c7cde977fa87d /libavcodec
parentba3bb53bdcb91332296adb958e3271759dcc2974 (diff)
downloadffmpeg-6287a356e335163581b8b8dca71cdc42f9b739d8.tar.gz
h264: Fix memleaks on close, reset more fields
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/h264.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index 17bbda8408..cb7e24961c 100644
--- a/libavcodec/h264.c
+++ b/libavcodec/h264.c
@@ -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);