]> git.sesse.net Git - ffmpeg/commit
avformat/dashdec: Reset pointer to NULL after freeing it
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Thu, 8 Oct 2020 13:40:02 +0000 (15:40 +0200)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Thu, 8 Oct 2020 13:40:02 +0000 (15:40 +0200)
commit616eb93a404c088635be74498ddb04072dfe1b90
tree5a870d840eb83955ddaa07ddfb7cd423f9c69b74
parente9521d9298a4f88c4a14bda1938afc0967f30a47
avformat/dashdec: Reset pointer to NULL after freeing it

This is currently safe here, because the effective lifetime of
adaptionset_lang is parse_manifest_adaptationset() (i.e. the pointer
gets overwritten each time on entry to the function and gets freed
before exiting the function), but it is nevertheless safer to reset the
pointer.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
libavformat/dashdec.c