]> git.meshlink.io Git - catta/blobdiff - avahi-daemon/dbus-async-service-resolver.c
work around a limitation in Gentoo's DBUS build (which is compiled with --disable...
[catta] / avahi-daemon / dbus-async-service-resolver.c
index 9fea5a112603022eea5530bd64c1f546bbf393d9..a9a13644977e8a754d509e7364305d737c96333f 100644 (file)
@@ -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--;