Mercurial > libavformat.hg
changeset 1046:92c01be95bbf libavformat
fix memory leak on mpegts close
found by Andy Brown <abrown at daqtron com>
author | mru |
---|---|
date | Sat, 01 Apr 2006 18:19:00 +0000 |
parents | 7f1b7f811f01 |
children | 76c75a88560d |
files | mpegts.c |
diffstat | 1 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mpegts.c Thu Mar 30 16:44:32 2006 +0000 +++ b/mpegts.c Sat Apr 01 18:19:00 2006 +0000 @@ -1374,6 +1374,14 @@ int i; for(i=0;i<NB_PID_MAX;i++) if (ts->pids[i]) mpegts_close_filter(ts, ts->pids[i]); + + for(i = 0; i < ts->nb_services; i++){ + av_free(ts->services[i]->provider_name); + av_free(ts->services[i]->name); + av_free(ts->services[i]); + } + av_freep(&ts->services); + return 0; }