Fix some errors reported by cppcheck.
Pull request: https://github.com/WebKit/WebKit/pull/12266
Committed 262483@main (6138f16f5f19): <https://commits.webkit.org/262483@main> Reviewed commits have been landed. Closing PR #12266 and removing active labels.
<rdar://problem/107513414>