Don't free SPICE ticket twice

Commit 2201a5a was supposed to free a SPICE ticket leak, but it's
actually introducing a double-free as the SPICE ticket is
unconditionally freed at the end of
virt_viewer_session_spice_main_channel_event
This commit is contained in:
Christophe Fergeau 2012-10-01 18:22:04 +02:00
parent d5bbe725d3
commit a4e588e3ea

View File

@ -326,7 +326,6 @@ 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)