changeset 3247:8876618cea62 libavformat

Fixing memleaks.
author michael
date Thu, 24 Apr 2008 22:16:00 +0000
parents a6a78c1cbf33
children 7fe0c156ed74
files mpegts.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mpegts.c	Thu Apr 24 17:22:39 2008 +0000
+++ b/mpegts.c	Thu Apr 24 22:16:00 2008 +0000
@@ -767,6 +767,8 @@
                     if(program)
                         av_set_program_name(program, provider_name, name);
                 }
+                av_free(name);
+                av_free(provider_name);
                 break;
             default:
                 break;
@@ -1370,6 +1372,9 @@
 {
     MpegTSContext *ts = s->priv_data;
     int i;
+
+    clear_programs(ts);
+
     for(i=0;i<NB_PID_MAX;i++)
         if (ts->pids[i]) mpegts_close_filter(ts, ts->pids[i]);