X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=avahi-daemon%2Fdbus-async-service-resolver.c;h=a9a13644977e8a754d509e7364305d737c96333f;hb=758381efbaa40d604253259cd43f194db1162859;hp=9fea5a112603022eea5530bd64c1f546bbf393d9;hpb=76e5b81f72de53614ac9c9b72d7b59d500e57770;p=catta diff --git a/avahi-daemon/dbus-async-service-resolver.c b/avahi-daemon/dbus-async-service-resolver.c index 9fea5a1..a9a1364 100644 --- a/avahi-daemon/dbus-async-service-resolver.c +++ b/avahi-daemon/dbus-async-service-resolver.c @@ -39,7 +39,11 @@ void avahi_dbus_async_service_resolver_free(AsyncServiceResolverInfo *i) { if (i->service_resolver) avahi_s_service_resolver_free(i->service_resolver); - dbus_connection_unregister_object_path(server->bus, i->path); + if (i->path) { + dbus_connection_unregister_object_path(server->bus, i->path); + avahi_free(i->path); + } + AVAHI_LLIST_REMOVE(AsyncServiceResolverInfo, async_service_resolvers, i->client->async_service_resolvers, i); i->client->n_objects--;