diff options
Diffstat (limited to 'gtk/spice-session.c')
-rw-r--r-- | gtk/spice-session.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/gtk/spice-session.c b/gtk/spice-session.c index 7c5169c..f46ac01 100644 --- a/gtk/spice-session.c +++ b/gtk/spice-session.c @@ -1745,8 +1745,13 @@ static gboolean open_host_idle_cb(gpointer data) proxy_lookup_ready, open_host); else #endif - open_host_connectable_connect(open_host, - g_network_address_new(s->host, open_host->port)); + { + GSocketConnectable *address; + + address = g_network_address_new(s->host, open_host->port); + open_host_connectable_connect(open_host, address); + g_object_unref(address); + } SPICE_DEBUG("open host %s:%d", s->host, open_host->port); if (open_host->proxy != NULL) { |