lavfi/subtitles: fix memleak after 6bcb1e1a
Spotted-by: James Almer <jamrial@gmail.com>
This commit is contained in:
parent
ee2a8f142b
commit
e73ccfd6ad
@ -478,6 +478,7 @@ end:
|
|||||||
av_dict_free(&codec_opts);
|
av_dict_free(&codec_opts);
|
||||||
if (dec_ctx)
|
if (dec_ctx)
|
||||||
avcodec_close(dec_ctx);
|
avcodec_close(dec_ctx);
|
||||||
|
avcodec_free_context(&dec_ctx);
|
||||||
if (fmt)
|
if (fmt)
|
||||||
avformat_close_input(&fmt);
|
avformat_close_input(&fmt);
|
||||||
return ret;
|
return ret;
|
||||||
|
Loading…
Reference in New Issue
Block a user