avformat/avio: Use ffurl_closep

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
pull/333/head
Andreas Rheinhardt 5 years ago committed by Michael Niedermayer
parent 8c2f81a17a
commit 2205fb2810
  1. 3
      libavformat/avio.c

@ -346,8 +346,7 @@ int ffurl_open_whitelist(URLContext **puc, const char *filename, int flags,
if (!ret)
return 0;
fail:
ffurl_close(*puc);
*puc = NULL;
ffurl_closep(puc);
return ret;
}

Loading…
Cancel
Save