[Spice-devel] [spice-gtk] Fix leak in spice_gtk_session_sync_keyboard_modifiers()
Jonathon Jongsma
jjongsma at redhat.com
Wed Apr 16 09:22:18 PDT 2014
Oops, thanks for catching that. ACK.
----- Original Message -----
> From: "Christophe Fergeau" <cfergeau at redhat.com>
> To: spice-devel at freedesktop.org
> Sent: Wednesday, April 16, 2014 11:16:02 AM
> Subject: [Spice-devel] [spice-gtk] Fix leak in spice_gtk_session_sync_keyboard_modifiers()
>
> 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
>
> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/spice-devel
>
More information about the Spice-devel
mailing list