mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +00:00
LibVideo/VP9: Do not null
guard calls to free
This commit is contained in:
parent
ad01f6030b
commit
0f729cebf4
Notes:
sideshowbarker
2024-07-17 21:49:30 +09:00
Author: https://github.com/mhermier Commit: https://github.com/SerenityOS/serenity/commit/0f729cebf4f Pull-request: https://github.com/SerenityOS/serenity/pull/11534
1 changed files with 11 additions and 22 deletions
|
@ -24,32 +24,21 @@ Parser::Parser(Decoder& decoder)
|
|||
Parser::~Parser()
|
||||
{
|
||||
cleanup_tile_allocations();
|
||||
if (m_prev_segment_ids)
|
||||
free(m_prev_segment_ids);
|
||||
free(m_prev_segment_ids);
|
||||
}
|
||||
|
||||
void Parser::cleanup_tile_allocations()
|
||||
{
|
||||
if (m_skips)
|
||||
free(m_skips);
|
||||
if (m_tx_sizes)
|
||||
free(m_tx_sizes);
|
||||
if (m_mi_sizes)
|
||||
free(m_mi_sizes);
|
||||
if (m_y_modes)
|
||||
free(m_y_modes);
|
||||
if (m_segment_ids)
|
||||
free(m_segment_ids);
|
||||
if (m_ref_frames)
|
||||
free(m_ref_frames);
|
||||
if (m_interp_filters)
|
||||
free(m_interp_filters);
|
||||
if (m_mvs)
|
||||
free(m_mvs);
|
||||
if (m_sub_mvs)
|
||||
free(m_sub_mvs);
|
||||
if (m_sub_modes)
|
||||
free(m_sub_modes);
|
||||
free(m_skips);
|
||||
free(m_tx_sizes);
|
||||
free(m_mi_sizes);
|
||||
free(m_y_modes);
|
||||
free(m_segment_ids);
|
||||
free(m_ref_frames);
|
||||
free(m_interp_filters);
|
||||
free(m_mvs);
|
||||
free(m_sub_mvs);
|
||||
free(m_sub_modes);
|
||||
}
|
||||
|
||||
/* (6.1) */
|
||||
|
|
Loading…
Reference in a new issue