lavfi/subtitles: fix memleak after 6bcb1e1a
[ffmpeg.git] / libavfilter / vf_subtitles.c
index 5c3cffb..c7c82b7 100644 (file)
@@ -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;