Re: [spice-gtk] Keep GSocketConnection around after initial connect

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Mar 27, 2013 at 3:53 PM, Christophe Fergeau <cfergeau@xxxxxxxxxx> 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
_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/spice-devel





[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]