From 47505dc5f618206d4af4cf7ed9d82925a2b366f6 Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Fri, 20 Apr 2018 14:32:32 +0000 Subject: [PATCH] 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