diff options
Diffstat (limited to 'bus/services.c')
-rw-r--r-- | bus/services.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/bus/services.c b/bus/services.c index f8124b05..c07b20fd 100644 --- a/bus/services.c +++ b/bus/services.c @@ -98,6 +98,17 @@ bus_service_lookup (const DBusString *service_name, return service; } +void +bus_service_free (BusService *service) +{ + _dbus_assert (service->owners == NULL); + + _dbus_hash_table_remove_string (service_hash, service->name); + + dbus_free (service->name); + _dbus_mem_pool_dealloc (service_pool, service); +} + dbus_bool_t bus_service_add_owner (BusService *service, DBusConnection *owner) |