X-Git-Url: https://git.dlugolecki.net.pl/?a=blobdiff_plain;f=gom%2Ffunc_template.h;h=dd17527302192260eff670fe246dad7d325aa514;hb=8073f669d16f11bfd50d42bb2cf6fdb79d358565;hp=d5b22c5e21032d177283f20259362807b59b8020;hpb=bb2090762d3ae9355a04286c33b78d24736b783c;p=gedcom-parse.git diff --git a/gom/func_template.h b/gom/func_template.h index d5b22c5..dd17527 100644 --- a/gom/func_template.h +++ b/gom/func_template.h @@ -438,7 +438,7 @@ void ADDFUNC2_STRN(STRUCTTYPE,FIELD)(Gom_ctxt ctxt, const char *str) \ else \ obj->FIELD = newvalue; \ } \ - destroy_gom_ctxt(ctxt); \ + def_elt_end(elt, parent, self, parsed_value); \ } \ } @@ -458,7 +458,7 @@ void ADDFUNC2_STRN(STRUCTTYPE,FIELD)(Gom_ctxt ctxt, const char *str) \ else \ obj->FIELD = newvalue; \ } \ - destroy_gom_ctxt(ctxt); \ + def_rec_end(rec, self, parsed_value); \ } \ }