X-Git-Url: https://git.dlugolecki.net.pl/?a=blobdiff_plain;f=gom%2Fassociation.c;h=9398bbc49182929cb32efc2d7fe1cf536a825736;hb=f197c791489f1537db4aebc7ce29b6d4f9adc2b3;hp=2d9cc2d56fafd2faf3f2b9e7caf2244d765bb6f1;hpb=763e8737b5118c5f23dca84a3290c2d805bbefe6;p=gedcom-parse.git diff --git a/gom/association.c b/gom/association.c index 2d9cc2d..9398bbc 100644 --- a/gom/association.c +++ b/gom/association.c @@ -97,6 +97,19 @@ void association_subscribe() def_elt_end); } +void UNREFALLFUNC(association)(struct association *obj) +{ + if (obj) { + struct association* runner; + for (runner = obj; runner; runner = runner->next) { + unref_xref_value(runner->to); + UNREFALLFUNC(source_citation)(runner->citation); + UNREFALLFUNC(note_sub)(runner->note); + UNREFALLFUNC(user_data)(runner->extra); + } + } +} + void CLEANFUNC(association)(struct association* assoc) { if (assoc) {