[Spice-devel] [PATCH spice-gtk 09/13] migration: remove unnecessary reference
Marc-André Lureau
marcandre.lureau at redhat.com
Sun Nov 9 08:31:41 PST 2014
---
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
More information about the Spice-devel
mailing list