diff h264.c @ 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 a95e55679dfa
children a5360f2a673e
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);