diff mpeg.c @ 237:35231c0be8e5 libavformat

memleak fix by (Michel Bardiaux <mbardiaux at peaktime dot be>)
author michaelni
date Tue, 09 Sep 2003 19:32:52 +0000
parents 0533547fb150
children 3d92f793fd67
line wrap: on
line diff
--- a/mpeg.c	Tue Sep 09 19:14:05 2003 +0000
+++ b/mpeg.c	Tue Sep 09 19:32:52 2003 +0000
@@ -395,6 +395,10 @@
     /* write the end header */
     //put_be32(&ctx->pb, ISO_11172_END_CODE);
     //put_flush_packet(&ctx->pb);
+
+    for(i=0;i<ctx->nb_streams;i++)
+        av_freep(&ctx->streams[i]->priv_data);
+
     return 0;
 }