]> git.sesse.net Git - ffmpeg/commit
avcodec/vp3: Fix memleak upon init failure
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Mon, 19 Oct 2020 18:23:54 +0000 (20:23 +0200)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Wed, 21 Oct 2020 03:46:04 +0000 (05:46 +0200)
commita01ca21bbbd41ad86ca58f2c7575c92a36a4b722
tree99edf659dd9505e03b5b46f932e550cbf92a7d98
parent682990a849ae7cd56e510a910845726c801eb8cd
avcodec/vp3: Fix memleak upon init failure

Up until now, there was no cleanup in case initializing the Theora VLC
tables failed, leading to memleaks. This commit gets rid of them by
setting the FF_CODEC_CAP_INIT_CLEANUP flag for all decoders in vp3.c;
this also allows to remove some (now redundant) cleanup code.

Reviewed-by: Peter Ross <pross@xvid.org>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
libavcodec/vp3.c