aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/mpeg.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2003-09-09 19:32:52 +0000
committerMichael Niedermayer <michaelni@gmx.at>2003-09-09 19:32:52 +0000
commit9d90c37f396201657a798fe59582218eb83fce27 (patch)
tree5291cd3b89b037f76a6120aeb3f65c726194f69f /libavformat/mpeg.c
parent72a476c1e1f50246af0bfb906a92bb2a38b8ebab (diff)
downloadffmpeg-9d90c37f396201657a798fe59582218eb83fce27.tar.gz
memleak fix by (Michel Bardiaux <mbardiaux at peaktime dot be>)
Originally committed as revision 2242 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/mpeg.c')
-rw-r--r--libavformat/mpeg.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavformat/mpeg.c b/libavformat/mpeg.c
index 5b405ce3c6..73f1b28622 100644
--- a/libavformat/mpeg.c
+++ b/libavformat/mpeg.c
@@ -395,6 +395,10 @@ static int mpeg_mux_end(AVFormatContext *ctx)
/* 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;
}