diff --git a/pappl/device-network.c b/pappl/device-network.c index 1eaf09e7..108db3ad 100644 --- a/pappl/device-network.c +++ b/pappl/device-network.c @@ -318,7 +318,11 @@ pappl_dnssd_free(_pappl_dns_sd_dev_t *d)// I - Device #elif defined(HAVE_AVAHI) if (d->ref) + { + _papplDNSSDLock(); avahi_record_browser_free(d->ref); + _papplDNSSDUnlock(); + } #endif // HAVE_MDNSRESPONDER free(d);