summaryrefslogtreecommitdiffstats
path: root/libavfilter/vf_subtitles.c
diff options
context:
space:
mode:
authorClément Bœsch <u@pkh.me>2016-06-25 19:11:51 +0200
committerClément Bœsch <u@pkh.me>2016-06-25 19:12:03 +0200
commite73ccfd6ad10d25862bc0b459519524ec5dfb2b1 (patch)
treeb3434d81949949322183419b879803f900a8f0d1 /libavfilter/vf_subtitles.c
parentee2a8f142b518e09dbef011db2026cf8a5bb8817 (diff)
downloadffmpeg-streaming-e73ccfd6ad10d25862bc0b459519524ec5dfb2b1.zip
ffmpeg-streaming-e73ccfd6ad10d25862bc0b459519524ec5dfb2b1.tar.gz
lavfi/subtitles: fix memleak after 6bcb1e1a
Spotted-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavfilter/vf_subtitles.c')
-rw-r--r--libavfilter/vf_subtitles.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavfilter/vf_subtitles.c b/libavfilter/vf_subtitles.c
index 5c3cffb..c7c82b7 100644
--- a/libavfilter/vf_subtitles.c
+++ b/libavfilter/vf_subtitles.c
@@ -478,6 +478,7 @@ end:
av_dict_free(&codec_opts);
if (dec_ctx)
avcodec_close(dec_ctx);
+ avcodec_free_context(&dec_ctx);
if (fmt)
avformat_close_input(&fmt);
return ret;
OpenPOWER on IntegriCloud