[Spice-devel] [spice-gtk] Keep GSocketConnection around after initial connect

Marc-André Lureau marcandre.lureau at gmail.com
Wed Mar 27 07:59:26 PDT 2013


On Wed, Mar 27, 2013 at 3:53 PM, Christophe Fergeau <cfergeau at redhat.com> wrote:
> +    if (c->conn) {
> +        g_object_unref(c->conn);
> +        c->sock = NULL;
> +        c->conn = NULL;
> +    }
>      if (c->sock) {
>          g_object_unref(c->sock);
>          c->sock = NULL;

Can we remove the if (c->sock) block below?

It looks quite suspicious that we can have either a strong or a weak
ref on c->sock.


-- 
Marc-André Lureau


More information about the Spice-devel mailing list