[Spice-devel] [spice-gtk] Fix leak in spice_gtk_session_sync_keyboard_modifiers()

Christophe Fergeau cfergeau at redhat.com
Wed Apr 16 09:16:02 PDT 2014


The list of channels returned by spice_session_get_channels()
must be freed after use.
---
 gtk/spice-gtk-session.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/gtk/spice-gtk-session.c b/gtk/spice-gtk-session.c
index 6dc7c93..3574544 100644
--- a/gtk/spice-gtk-session.c
+++ b/gtk/spice-gtk-session.c
@@ -1139,4 +1139,5 @@ void spice_gtk_session_sync_keyboard_modifiers(SpiceGtkSession *self)
             spice_gtk_session_sync_keyboard_modifiers_for_channel(self, inputs, TRUE);
         }
     }
+    g_list_free(channels);
 }
-- 
1.9.0



More information about the Spice-devel mailing list