Mercurial > libavformat.hg
changeset 3521:b068f51d1c6e libavformat
memleak
author | michael |
---|---|
date | Thu, 26 Jun 2008 23:02:42 +0000 |
parents | 2b1a7c3650c4 |
children | dfb9739dd2dc |
files | psxstr.c |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/psxstr.c Thu Jun 26 23:00:00 2008 +0000 +++ b/psxstr.c Thu Jun 26 23:02:42 2008 +0000 @@ -242,6 +242,11 @@ static int str_read_close(AVFormatContext *s) { StrDemuxContext *str = s->priv_data; + int i; + for(i=0; i<32; i++){ + if(str->channels[i].tmp_pkt.data) + av_free_packet(&str->channels[i].tmp_pkt); + } return 0; }