Commit e73ccfd6 authored by Clément Bœsch's avatar Clément Bœsch

lavfi/subtitles: fix memleak after 6bcb1e1a

Spotted-by: 's avatarJames Almer <jamrial@gmail.com>
parent ee2a8f14
...@@ -478,6 +478,7 @@ end: ...@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment