X-Git-Url: https://git.dlugolecki.net.pl/?a=blobdiff_plain;f=gom%2Fplace.c;h=38ff377481d2330b1caef10a37bceac70addb1b4;hb=bb2090762d3ae9355a04286c33b78d24736b783c;hp=cb852536aec106632f8da69e0c1a27f354b5c53a;hpb=7ae7ece158a1d930a77806f591b1d16b2cde581f;p=gedcom-parse.git diff --git a/gom/place.c b/gom/place.c index cb85253..38ff377 100644 --- a/gom/place.c +++ b/gom/place.c @@ -72,7 +72,7 @@ Gedcom_ctxt sub_place_start(_ELT_PARAMS_) } DEFINE_SUB_MAKEFUNC(place) -DEFINE_SUB_ADDFUNC(place) +DEFINE_SUB_SETFUNC(place) DEFINE_SUB_DELETEFUNC(place) DEFINE_STRING_CB(place, sub_place_form_start, place_hierarchy) @@ -88,6 +88,15 @@ void place_subscribe() sub_place_form_start, def_elt_end); } +void UNREFALLFUNC(place)(struct place* obj) +{ + if (obj) { + UNREFALLFUNC(source_citation)(obj->citation); + UNREFALLFUNC(note_sub)(obj->note); + UNREFALLFUNC(user_data)(obj->extra); + } +} + void CLEANFUNC(place)(struct place* place) { if (place) {