changeset 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 ee98d63dbba7
children 3519903c6c2a
files mpeg.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
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;
 }