Re: [spice-gtk] session: Fix 'g_proxy_address_new' memory leak

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

 




----- Original Message -----
> The address returned by g_proxy_address_new must be unref'ed when no
> longer needed.

ack (the connectable is referenced when calling g_socket_client_connect_async())

> ---
>  gtk/spice-session.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/gtk/spice-session.c b/gtk/spice-session.c
> index 8de48e5..1228edb 100644
> --- a/gtk/spice-session.c
> +++ b/gtk/spice-session.c
> @@ -1979,6 +1979,7 @@ static void proxy_lookup_ready(GObject *source_object,
> GAsyncResult *result,
>  
>      open_host_connectable_connect(open_host, G_SOCKET_CONNECTABLE(address));
>      g_resolver_free_addresses(addresses);
> +    g_object_unref(address);
>  }
>  
>  /* main context */
> --
> 2.1.0
> 
> _______________________________________________
> Spice-devel mailing list
> Spice-devel@xxxxxxxxxxxxxxxxxxxxx
> http://lists.freedesktop.org/mailman/listinfo/spice-devel
> 
_______________________________________________
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]