Skip to content

Commit

Permalink
build/aenc: fix wrong array comparison -Wtautological-pointer-compare…
Browse files Browse the repository at this point in the history
… (#5451)

Caught by clang-14 -Wtautological-pointer-compare.

Signed-off-by: Dmitry Rogozhkin <[email protected]>
Co-authored-by: Dmitry Rogozhkin <[email protected]>
  • Loading branch information
gfxVPLsdm and dvrogozh authored Jun 30, 2023
1 parent 421f18d commit 1473c2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _studio/enctools/aenc/src/av1_asc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1121,7 +1121,7 @@ namespace aenc {
delete m_support->logic[i];
delete[] m_support->logic;
}
if (m_support->gainCorrection->Image.data != nullptr)
if (m_support->gainCorrection != nullptr)
delete m_support->gainCorrection;
}

Expand Down

0 comments on commit 1473c2e

Please sign in to comment.