When asynchronously acquiring the DBus connection, assume a reference to
the proxy object, to avoid destroying it in the middle of the operation.
See https://bugzilla.gnome.org/show_bug.cgi?id=621905
if (data->cancellable != NULL)
g_object_unref (data->cancellable);
if (data->cancellable != NULL)
g_object_unref (data->cancellable);
+ if (data->proxy != NULL)
+ g_object_unref (data->proxy);
g_assert (proxy->priv->connection == NULL);
data = g_new0 (GetConnectionData, 1);
g_assert (proxy->priv->connection == NULL);
data = g_new0 (GetConnectionData, 1);
+ data->proxy = g_object_ref (proxy);
data->io_priority = io_priority;
data->cancellable = cancellable != NULL ? g_object_ref (cancellable) : NULL;
data->callback = callback;
data->io_priority = io_priority;
data->cancellable = cancellable != NULL ? g_object_ref (cancellable) : NULL;
data->callback = callback;