gpui: Fix some memory leaks on macOS platform (#44639)

While profiling with instruments, I discovered that some of the strings
allocated on the mac platform are never released, and the profiler marks
them as leaks

<img width="1570" height="219" alt="image"
src="https://github.com/user-attachments/assets/174e9293-5139-46ae-8757-c8989f3fc598"
/>


Release Notes:

- N/A

---------

Signed-off-by: Marco Mihai Condrache <52580954+marcocondrache@users.noreply.github.com>
Co-authored-by: Anthony Eid <anthony@zed.dev>
79dfae2464Marco Mihai Condrache committed on 12/15/2025, 5:37:27 PM· committed by GitHubparente106374
8 files changedLine totals unavailable