[Spice-devel] [PATCH spice-gtk 09/13] migration: remove unnecessary reference
Christophe Fergeau
cfergeau at redhat.com
Wed Nov 12 07:14:45 PST 2014
Hey, this one can be squashed in patch 04/13
Christophe
On Sun, Nov 09, 2014 at 05:31:41PM +0100, Marc-André Lureau wrote:
> ---
> 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 at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/spice-devel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/spice-devel/attachments/20141112/8c64b106/attachment.sig>
More information about the Spice-devel
mailing list