Logo Search packages:      
Sourcecode: avahi version File versions  Download package

void avahi_key_unref ( AvahiKey k )

Decrease the reference counter of an AvahiKey object by one

Definition at line 86 of file rr.c.

References AvahiKey::name, and AvahiKey::ref.

                                  {
    assert(k);
    assert(k->ref >= 1);

    if ((--k->ref) <= 0) {
        avahi_free(k->name);
        avahi_free(k);
    }
}

Generated by  Doxygen 1.6.0   Back to index