mirror of https://git.ffmpeg.org/ffmpeg.git
Free the RTSPStreams in ff_rtsp_close_streams
This plugs a small memory leak Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
This commit is contained in:
parent
71e0bee9ea
commit
ea7f080749
|
@ -532,6 +532,7 @@ void ff_rtsp_close_streams(AVFormatContext *s)
|
||||||
if (rtsp_st->dynamic_handler && rtsp_st->dynamic_protocol_context)
|
if (rtsp_st->dynamic_handler && rtsp_st->dynamic_protocol_context)
|
||||||
rtsp_st->dynamic_handler->close(
|
rtsp_st->dynamic_handler->close(
|
||||||
rtsp_st->dynamic_protocol_context);
|
rtsp_st->dynamic_protocol_context);
|
||||||
|
av_free(rtsp_st);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
av_free(rt->rtsp_streams);
|
av_free(rt->rtsp_streams);
|
||||||
|
|
Loading…
Reference in New Issue