From f86f66562311f38b6b7864c19720727916fb0d19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Mon, 22 Feb 2010 21:20:30 +0000 Subject: Free metadata in chained RTP muxers in the RTSP muxer This fixes a minor memory leak Originally committed as revision 21970 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/rtsp.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libavformat/rtsp.c') diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c index e06fba8c61..26b9e9312b 100644 --- a/libavformat/rtsp.c +++ b/libavformat/rtsp.c @@ -586,6 +586,8 @@ void rtsp_close_streams(AVFormatContext *s) AVFormatContext *rtpctx = rtsp_st->transport_priv; av_write_trailer(rtpctx); url_fclose(rtpctx->pb); + av_metadata_free(&rtpctx->streams[0]->metadata); + av_metadata_free(&rtpctx->metadata); av_free(rtpctx->streams[0]); av_free(rtpctx); } else if (rt->transport == RTSP_TRANSPORT_RDT) -- cgit v1.2.1