c/main: fix leaks on compositor creation failure
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2434>
authored by Patrick Nicolas and committed by Marge Bot 6 months ago c6f21cdb c4417629