[FFmpeg-devel] [PATCH] avformat: Replace ffurl_close() by ffurl_closep() where appropriate

Anton Khirnov anton at khirnov.net
Mon May 25 12:55:28 EEST 2020


Quoting Andreas Rheinhardt (2020-05-25 08:27:44)
> It avoids leaving dangling pointers behind in memory.
> 
> Also remove redundant checks for whether the URLContext to be closed is
> already NULL.
> 
> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at gmail.com>

Looks very nice.

-- 
Anton Khirnov


More information about the ffmpeg-devel mailing list