X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Fsrtpproto.c;h=13e2245015f5108708ba0d3994103497a8386948;hb=e83717e63eab1f1b78dc0990e5b8e927097fca29;hp=5e6e5164d757fbbc1f3c144116c26d23673ec13b;hpb=409e684e79b6ee0c511292326f09b13fe230e58e;p=ffmpeg diff --git a/libavformat/srtpproto.c b/libavformat/srtpproto.c index 5e6e5164d75..13e2245015f 100644 --- a/libavformat/srtpproto.c +++ b/libavformat/srtpproto.c @@ -59,8 +59,7 @@ static int srtp_close(URLContext *h) SRTPProtoContext *s = h->priv_data; ff_srtp_free(&s->srtp_out); ff_srtp_free(&s->srtp_in); - ffurl_close(s->rtp_hd); - s->rtp_hd = NULL; + ffurl_closep(&s->rtp_hd); return 0; }