mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-12-23 14:03:40 +00:00
[parser/nal] no need to check for null before free (fixes #87)
This commit is contained in:
parent
e4cdc58399
commit
ef336d552c
@ -68,27 +68,13 @@ bool nal_initialize(NAL * ptr)
|
|||||||
|
|
||||||
void nal_deinitialize(NAL this)
|
void nal_deinitialize(NAL this)
|
||||||
{
|
{
|
||||||
if (this->slice_pred_weight_table_l1)
|
free(this->slice_pred_weight_table_l1);
|
||||||
free(this->slice_pred_weight_table_l1);
|
free(this->slice_pred_weight_table_l0);
|
||||||
|
free(this->pps_slice_group_id);
|
||||||
if (this->slice_pred_weight_table_l0)
|
free(this->pps_slice_groups);
|
||||||
free(this->slice_pred_weight_table_l0);
|
free(this->sps_offset_for_ref_frame);
|
||||||
|
free(this->vui_nal_hrd_parameters_cpb);
|
||||||
if (this->pps_slice_group_id)
|
free(this->vui_vcl_hrd_parameters_cpb);
|
||||||
free(this->pps_slice_group_id);
|
|
||||||
|
|
||||||
if (this->pps_slice_groups)
|
|
||||||
free(this->pps_slice_groups);
|
|
||||||
|
|
||||||
if (this->sps_offset_for_ref_frame)
|
|
||||||
free(this->sps_offset_for_ref_frame);
|
|
||||||
|
|
||||||
if (this->vui_nal_hrd_parameters_cpb)
|
|
||||||
free(this->vui_nal_hrd_parameters_cpb);
|
|
||||||
|
|
||||||
if (this->vui_vcl_hrd_parameters_cpb)
|
|
||||||
free(this->vui_vcl_hrd_parameters_cpb);
|
|
||||||
|
|
||||||
free(this);
|
free(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user