if (i->host_name_resolver)
avahi_s_host_name_resolver_free(i->host_name_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(AsyncHostNameResolverInfo, async_host_name_resolvers, i->client->async_host_name_resolvers, i);
i->client->n_objects--;
/* Introspection */
if (dbus_message_is_method_call(m, DBUS_INTERFACE_INTROSPECTABLE, "Introspect"))
- return avahi_dbus_handle_introspect(c, m, "HostNameResolver.Introspect");
+ return avahi_dbus_handle_introspect(c, m, "HostNameResolver.introspect");
/* Access control */
if (strcmp(dbus_message_get_sender(m), i->client->name))