X-Git-Url: https://git.dlugolecki.net.pl/?a=blobdiff_plain;f=gom%2Fnote_sub.c;h=2ff76db751e6eca2b62c999a446037e6e877d837;hb=58c7f618a6964a7fa5fc95c67f13f0a52689a29a;hp=2d748a6017ee8be6f77339d3cbbefcbf39889aaf;hpb=763e8737b5118c5f23dca84a3290c2d805bbefe6;p=gedcom-parse.git diff --git a/gom/note_sub.c b/gom/note_sub.c index 2d748a6..2ff76db 100644 --- a/gom/note_sub.c +++ b/gom/note_sub.c @@ -122,6 +122,18 @@ void note_sub_subscribe() gedcom_subscribe_to_element(ELT_SUB_NOTE, sub_note_start, sub_note_end); } +void UNREFALLFUNC(note_sub)(struct note_sub* obj) +{ + if (obj) { + struct note_sub* runner; + for (runner = obj; runner; runner = runner->next) { + unref_xref_value(runner->reference); + UNREFALLFUNC(source_citation)(runner->citation); + UNREFALLFUNC(user_data)(runner->extra); + } + } +} + void CLEANFUNC(note_sub)(struct note_sub* note) { if (note) {