From ce41c51b0c71c87f623914ba0786aef325d818fe Mon Sep 17 00:00:00 2001 From: Martin Storsjö Date: Wed, 2 Feb 2011 10:57:26 +0200 Subject: Free AVStream->info in chained muxers This fixes memory leaks in the RTSP muxer and RTP hinting in the mov muxer present since SVN rev 25418. Signed-off-by: Luca Barbato --- libavformat/movenchint.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libavformat/movenchint.c') diff --git a/libavformat/movenchint.c b/libavformat/movenchint.c index 2ebe8b808f..2aa0f17d54 100644 --- a/libavformat/movenchint.c +++ b/libavformat/movenchint.c @@ -86,6 +86,7 @@ fail: } if (track->rtp_ctx && track->rtp_ctx->streams[0]) { av_metadata_free(&track->rtp_ctx->streams[0]->metadata); + av_free(track->rtp_ctx->streams[0]->info); av_free(track->rtp_ctx->streams[0]); } if (track->rtp_ctx) { @@ -490,6 +491,7 @@ void ff_mov_close_hinting(MOVTrack *track) { } av_metadata_free(&rtp_ctx->streams[0]->metadata); av_metadata_free(&rtp_ctx->metadata); + av_free(rtp_ctx->streams[0]->info); av_free(rtp_ctx->streams[0]); av_freep(&rtp_ctx); } -- cgit v1.2.3