diff options
author | Michel Hermier <michel.hermier@gmail.com> | 2021-12-29 13:34:27 +0100 |
---|---|---|
committer | Brian Gianforcaro <b.gianfo@gmail.com> | 2022-01-01 17:30:25 +0000 |
commit | 0f729cebf4ff08b8d625c300a00be32241dbe27a (patch) | |
tree | 527d3b4dd8ba27502ea1521cb420e165dedd1f53 /Userland/Libraries | |
parent | ad01f6030b44e070651526975e74651f5be4c6f4 (diff) | |
download | serenity-0f729cebf4ff08b8d625c300a00be32241dbe27a.zip |
LibVideo/VP9: Do not `null` guard calls to `free`
Diffstat (limited to 'Userland/Libraries')
-rw-r--r-- | Userland/Libraries/LibVideo/VP9/Parser.cpp | 33 |
1 files changed, 11 insertions, 22 deletions
diff --git a/Userland/Libraries/LibVideo/VP9/Parser.cpp b/Userland/Libraries/LibVideo/VP9/Parser.cpp index ce923b366f..47732aeafe 100644 --- a/Userland/Libraries/LibVideo/VP9/Parser.cpp +++ b/Userland/Libraries/LibVideo/VP9/Parser.cpp @@ -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) */ |