summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Keller <skeller@gnome.org>2022-03-21 21:25:28 +0100
committerSebastian Keller <skeller@gnome.org>2022-03-21 21:25:28 +0100
commit703d8a77f15efeb2c5ad2dea420ef4f39c725d60 (patch)
treedfa6a88a10d09ca6990e780691188215bc9f6e62
parent8edd2c7d060e146d11998840a7644de1dec29708 (diff)
downloadmutter-703d8a77f15efeb2c5ad2dea420ef4f39c725d60.tar.gz
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>
-rw-r--r--clutter/clutter/clutter-stage.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/clutter/clutter/clutter-stage.c b/clutter/clutter/clutter-stage.c
index 569df87a7..f34a42479 100644
--- a/clutter/clutter/clutter-stage.c
+++ b/clutter/clutter/clutter-stage.c
@@ -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 *