703d8a77f1
The caller is expected to unref the returned grab and all C code already does this, but grabs requested from js were resulting in the memory getting leaked due to it being annotated as transfer none. Fixes: https://gitlab.gnome.org/GNOME/mutter/-/issues/2189 Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2345>