[mutter/gnome-3-28] clutter: Plug minor leak



commit 47505dc5f618206d4af4cf7ed9d82925a2b366f6
Author: Carlos Garnacho <carlosg gnome org>
Date:   Fri Apr 20 14:32:32 2018 +0000

    clutter: Plug minor leak
    
    clutter_stage_manager_list_stages() returns a copied list, which
    should be freed.
    
    
    (cherry picked from commit 8cf42cd06caab4118082e28b80fc6691e14cc524)

 clutter/clutter/cally/cally-util.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/clutter/clutter/cally/cally-util.c b/clutter/clutter/cally/cally-util.c
index 8ffd2071a..8d6b19c6e 100644
--- a/clutter/clutter/cally/cally-util.c
+++ b/clutter/clutter/cally/cally-util.c
@@ -214,6 +214,8 @@ cally_util_simulate_snooper_install (void)
                     G_CALLBACK (cally_util_stage_added_cb), cally_key_snooper);
   g_signal_connect (G_OBJECT (stage_manager), "stage-removed",
                     G_CALLBACK (cally_util_stage_removed_cb), cally_key_snooper);
+
+  g_slist_free (stage_list);
 }
 
 static void


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