mirror of
https://github.com/ultravideo/uvg266.git
synced 2024-11-27 19:24:06 +00:00
Added forgotten memory release.
This commit is contained in:
parent
b17e26511f
commit
7109313161
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue