diff options
Diffstat (limited to 'libavformat/gopher.c')
-rw-r--r-- | libavformat/gopher.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/libavformat/gopher.c b/libavformat/gopher.c index 3070b24caf..8b6d14a1f7 100644 --- a/libavformat/gopher.c +++ b/libavformat/gopher.c @@ -68,10 +68,7 @@ static int gopher_connect(URLContext *h, const char *path) static int gopher_close(URLContext *h) { GopherContext *s = h->priv_data; - if (s->hd) { - ffurl_close(s->hd); - s->hd = NULL; - } + ffurl_closep(&s->hd); return 0; } |