if (bus_connections[i] == connection)
{
bus_connections[i] = NULL;
- _dbus_connection_unref_unlocked (connection);
}
}
if (!private)
{
- /* get a hard ref to the connection */
+ /* get a weak ref to the connection */
bus_connections[type] = connection;
- dbus_connection_ref (bus_connections[type]);
}
bd = ensure_bus_data (connection);