mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-03-21 21:05:51 +00:00
Unfortunately adopt_ref requires a reference, which obviously does not work well with when attempting to harden against allocation failure. The adopt_ref_if_nonnull() variant will allow you to avoid using bare pointers, while still allowing you to handle allocation failure.