X-Git-Url: https://git.dlugolecki.net.pl/?a=blobdiff_plain;f=gom%2Fsource.c;h=51c0335443c64d1cce9f470f1e2e500c644768fb;hb=f8f253aa29e3c2561d325cb47cc17a727f76266e;hp=c13acb38f0edab45392c4f64b01411d014c42309;hpb=72689522e287ca3b2231e7d8881f0fe5bea48f15;p=gedcom-parse.git diff --git a/gom/source.c b/gom/source.c index c13acb3..51c0335 100644 --- a/gom/source.c +++ b/gom/source.c @@ -95,6 +95,22 @@ void source_add_note_to_repo(Gom_ctxt ctxt, struct note_sub* note) LINK_CHAIN_ELT(note_sub, sour->repository.note, note); } +void UNREFALLFUNC(source)(struct source *obj) +{ + if (obj) { + UNREFALLFUNC(source_event)(obj->data.event); + UNREFALLFUNC(note_sub)(obj->data.note); + unref_xref_value(obj->repository.link); + UNREFALLFUNC(note_sub)(obj->repository.note); + UNREFALLFUNC(source_description)(obj->repository.description); + UNREFALLFUNC(multimedia_link)(obj->mm_link); + UNREFALLFUNC(note_sub)(obj->note); + UNREFALLFUNC(user_ref_number)(obj->ref); + UNREFALLFUNC(change_date)(obj->change_date); + UNREFALLFUNC(user_data)(obj->extra); + } +} + void CLEANFUNC(source)(struct source* sour) { if (sour) {