clutter: Mark clutter_stage_grab() return value as transfer full
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>
This commit is contained in:
parent
8edd2c7d06
commit
703d8a77f1
@ -3779,7 +3779,7 @@ G_DEFINE_BOXED_TYPE (ClutterGrab, clutter_grab,
|
||||
* Grabs input onto a certain actor. Events will be propagated as
|
||||
* usual inside its hierarchy.
|
||||
*
|
||||
* Returns: (transfer none): (nullable): an opaque #ClutterGrab handle, drop
|
||||
* Returns: (transfer full): (nullable): an opaque #ClutterGrab handle, drop
|
||||
* with clutter_grab_dismiss()
|
||||
**/
|
||||
ClutterGrab *
|
||||
|
Loading…
Reference in New Issue
Block a user