X-Git-Url: https://git.dlugolecki.net.pl/?a=blobdiff_plain;f=gom%2Ffamily.c;h=9d4a4e562f5c46822409dcb24f9a09af06580646;hb=327069289a45ed1e91d8bfc07d7d89cfbad057d6;hp=8389569c0a93418e79d775762afc94569a19df4e;hpb=72689522e287ca3b2231e7d8881f0fe5bea48f15;p=gedcom-parse.git diff --git a/gom/family.c b/gom/family.c index 8389569..9d4a4e5 100644 --- a/gom/family.c +++ b/gom/family.c @@ -73,6 +73,24 @@ void family_subscribe() gedcom_subscribe_to_element(ELT_FAM_SUBM, fam_subm_start, def_elt_end); } +void UNREFALLFUNC(family)(struct family *fam) +{ + if (fam) { + UNREFALLFUNC(event)(fam->event); + unref_xref_value(fam->husband); + unref_xref_value(fam->wife); + UNREFALLFUNC(xref_list)(fam->children); + UNREFALLFUNC(xref_list)(fam->submitters); + UNREFALLFUNC(lds_event)(fam->lds_spouse_sealing); + UNREFALLFUNC(source_citation)(fam->citation); + UNREFALLFUNC(multimedia_link)(fam->mm_link); + UNREFALLFUNC(note_sub)(fam->note); + UNREFALLFUNC(user_ref_number)(fam->ref); + UNREFALLFUNC(change_date)(fam->change_date); + UNREFALLFUNC(user_data)(fam->extra); + } +} + void CLEANFUNC(family)(struct family* fam) { if (fam) {