Mercurial > libavformat.hg
changeset 2599:bef7b30c2969 libavformat
Fix memleak
Closes issue 102
author | ramiro |
---|---|
date | Fri, 12 Oct 2007 23:25:48 +0000 |
parents | fc7f8ee4700b |
children | a004bd730f70 |
files | asf.c |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/asf.c Thu Oct 11 14:57:47 2007 +0000 +++ b/asf.c Fri Oct 12 23:25:48 2007 +0000 @@ -878,10 +878,13 @@ return 0; } +static void asf_reset_header(AVFormatContext *s); + static int asf_read_close(AVFormatContext *s) { int i; + asf_reset_header(s); for(i=0;i<s->nb_streams;i++) { AVStream *st = s->streams[i]; av_free(st->priv_data);