Don't leak SPICE ticket

This commit is contained in:
Christophe Fergeau 2012-06-12 14:47:52 +02:00
parent 0341125ca4
commit 2201a5adf4

View File

@ -325,6 +325,7 @@ virt_viewer_session_spice_main_channel_event(SpiceChannel *channel G_GNUC_UNUSED
gboolean openfd;
g_object_set(self->priv->session, "password", password, NULL);
g_free(password);
g_object_get(self->priv->session, "client-sockets", &openfd, NULL);
if (openfd)