avformat: Replace ffurl_close() by ffurl_closep() where appropriate
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Fri, 3 Apr 2020 15:03:38 +0000 (17:03 +0200)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Mon, 25 May 2020 11:11:36 +0000 (13:11 +0200)
commit82bf41f3abce4a13e7c6ad1606eb708f371de87f
treea76e1dc947a8b2db0dbf821d5c8fcc5e61269a52
parentaf97c9865fe7a48b223e162eabce21cc180f305c
avformat: Replace ffurl_close() by ffurl_closep() where appropriate

It avoids leaving dangling pointers behind in memory.

Also remove redundant checks for whether the URLContext to be closed is
already NULL.

Reviewed-by: Anton Khirnov <anton@khirnov.net>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
24 files changed:
libavformat/async.c
libavformat/cache.c
libavformat/concat.c
libavformat/crypto.c
libavformat/gopher.c
libavformat/hlsproto.c
libavformat/icecast.c
libavformat/mmsh.c
libavformat/mmst.c
libavformat/rtmpcrypt.c
libavformat/rtmphttp.c
libavformat/rtmpproto.c
libavformat/rtpproto.c
libavformat/rtsp.c
libavformat/sapdec.c
libavformat/sapenc.c
libavformat/smoothstreamingenc.c
libavformat/srtpproto.c
libavformat/subfile.c
libavformat/tls_gnutls.c
libavformat/tls_libtls.c
libavformat/tls_openssl.c
libavformat/tls_schannel.c
libavformat/tls_securetransport.c