List Info

Thread: Re: Do I need to do the avahi_service_resolver_free




Re: Do I need to do the avahi_service_resolver_free
country flaguser name
Germany
2007-12-20 04:45:36
On Thu, 20.12.07 09:06, Arhold (arholdgmail.com) wrote:

> Hi Lennart,

Hi!

> Thanks for your reply. It's very helpful.
> 
> I think our case belongs to the exceptions where the
constant monitoring is
> neccessory. So we will need to keep
AvahiServiceResolver around.
> 
> My further question is, when will the
AvahiServiceResolver be free. Do I
> need to release the resolver somewhere in my
application or  avahi itself
> will manage those resolvers?

We don't do automatic memory management, this is not Java or
Python or
anything 

You should always free your own resources, however the
final
avahi_client_free() will also free all attached objects,
like
browsers, resolvers, entry groups. Freeing the client will
do the big
clean up. OTOH this means that you are not supposed to use
any of the
attached objects after calling avahi_client_free()!

Lennart

-- 
Lennart Poettering                        Red Hat, Inc.
lennart [at] poettering [dot] net         ICQ# 11060553
http://0pointer.net/lenn
art/           GnuPG 0x1A015CC4
_______________________________________________
avahi mailing list
avahilists.freedesktop.org
h
ttp://lists.freedesktop.org/mailman/listinfo/avahi

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )