From 7109313161f492c67c8ea4558aee8d55ff6c4578 Mon Sep 17 00:00:00 2001 From: Arttu Makinen Date: Wed, 9 Dec 2020 12:23:42 +0200 Subject: [PATCH] Added forgotten memory release. --- src/encoder_state-ctors_dtors.c | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/src/encoder_state-ctors_dtors.c b/src/encoder_state-ctors_dtors.c index c488db1a..8160ed37 100644 --- a/src/encoder_state-ctors_dtors.c +++ b/src/encoder_state-ctors_dtors.c @@ -745,20 +745,15 @@ void kvz_encoder_state_finalize(encoder_state_t * const state) { if (!state->parent || (state->parent->slice != state->slice)) { if (state->encoder_control->cfg.alf_type) { - /*if (state->slice->param_set_map && state->slice->param_set_map != NULL) { - FREE_POINTER(state->slice->param_set_map); - }*/ if (state->slice->apss != NULL) { - /*for (int i = 0; i < ALF_CTB_MAX_NUM_APS; i++) { - if (state->slice->apss[i] != NULL) { - FREE_POINTER(state->slice->apss[i]); - } - }*/ FREE_POINTER(state->slice->apss); } if (state->slice->tile_group_luma_aps_id != NULL) { FREE_POINTER(state->slice->tile_group_luma_aps_id); } + if (state->slice->cc_filter_param != NULL) { + FREE_POINTER(state->slice->cc_filter_param); + } } FREE_POINTER(state->slice);