diff options
Diffstat (limited to 'libavcodec/ass_split.c')
-rw-r--r-- | libavcodec/ass_split.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libavcodec/ass_split.c b/libavcodec/ass_split.c index a0b72542c7..81d501eefe 100644 --- a/libavcodec/ass_split.c +++ b/libavcodec/ass_split.c @@ -352,8 +352,10 @@ void ff_ass_split_free(ASSSplitContext *ctx) { if (ctx) { int i; - for (i=0; i<FF_ARRAY_ELEMS(ass_sections); i++) + for (i=0; i<FF_ARRAY_ELEMS(ass_sections); i++) { free_section(ctx, &ass_sections[i]); + av_freep(&(ctx->field_order[i])); + } av_free(ctx); } } |