Make use of more smart pointers as warned by the Clang static analyzer.
<rdar://problem/115634461>
Pull request: https://github.com/WebKit/WebKit/pull/17849
Committed 268630@main (4ee9cbf71193): <https://commits.webkit.org/268630@main> Reviewed commits have been landed. Closing PR #17849 and removing active labels.