changeset 2891:4c6eb826e9cb libavcodec

Just noticed there is a memory leak in h264.c with the usage of rbsp_buffer. Here is a patch which frees the rbsp_buffer in decode_end(). patch by (G«”bor Kov«”cs | picard / demoscene \ hu)
author michael
date Wed, 21 Sep 2005 08:14:17 +0000
parents 8c9eee3fb35d
children 41315d0120b3
files h264.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/h264.c	Tue Sep 20 21:43:45 2005 +0000
+++ b/h264.c	Wed Sep 21 08:14:17 2005 +0000
@@ -7807,6 +7807,7 @@
     H264Context *h = avctx->priv_data;
     MpegEncContext *s = &h->s;
     
+    av_freep(&h->rbsp_buffer);
     free_tables(h); //FIXME cleanup init stuff perhaps
     MPV_common_end(s);