changeset 5694:70bd52594e2b libavformat

Free metadata in chained RTP muxers in the RTSP muxer This fixes a minor memory leak
author mstorsjo
date Mon, 22 Feb 2010 21:20:30 +0000
parents bb370e798845
children 25062326d2f9
files rtsp.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/rtsp.c	Mon Feb 22 19:47:22 2010 +0000
+++ b/rtsp.c	Mon Feb 22 21:20:30 2010 +0000
@@ -586,6 +586,8 @@
                     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)