--- gtk/channel-main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gtk/channel-main.c b/gtk/channel-main.c index 2b88391..826b10b 100644 --- a/gtk/channel-main.c +++ b/gtk/channel-main.c @@ -2163,7 +2163,7 @@ static void main_migrate_connect(SpiceChannel *channel, mig.session = spice_session_new_from_session(session); if (mig.session == NULL) goto end; - session->priv->migration = g_object_ref(mig.session); + session->priv->migration = mig.session; main_priv->migrate_data = &mig; @@ -2187,7 +2187,6 @@ static void main_migrate_connect(SpiceChannel *channel, spice_session_set_migration(spice_channel_get_session(channel), mig.do_seamless); } - g_object_unref(mig.session); end: CHANNEL_DEBUG(channel, "migrate connect reply %d", reply_type); -- 1.9.3 _______________________________________________ Spice-devel mailing list Spice-devel@xxxxxxxxxxxxxxxxxxxxx http://lists.freedesktop.org/mailman/listinfo/spice-devel