# HG changeset patch # User michael # Date 1127290457 0 # Node ID 4c6eb826e9cb7d17ebee3c74afbad362abeac480 # Parent 8c9eee3fb35d5c0d847ec9c0419757cc047b8508 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) diff -r 8c9eee3fb35d -r 4c6eb826e9cb h264.c --- 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);