Don't let any dangling pointer keeping it alive. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1775>