[mutter] clutter: Mark clutter_stage_grab() return value as transfer full



commit 703d8a77f15efeb2c5ad2dea420ef4f39c725d60
Author: Sebastian Keller <skeller gnome org>
Date:   Mon Mar 21 21:25:28 2022 +0100

    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>

 clutter/clutter/clutter-stage.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/clutter/clutter/clutter-stage.c b/clutter/clutter/clutter-stage.c
index 569df87a76..f34a424797 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 *


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]