Use def_elt_end instead of destroying the context directly.
[gedcom-parse.git] / gom / note_sub.c
index e523b32ba120dc0cece1800f11f24642d0922180..7facc415060bb3786be424a282952525be452b3b 100644 (file)
@@ -126,12 +126,16 @@ void sub_note_end(_ELT_END_PARAMS_)
        else
          obj->text = newvalue;
       }
-      destroy_gom_ctxt(ctxt);
+      def_elt_end(elt, parent, self, parsed_value);
     }
   }
 }
 
 DEFINE_SUB_MAKEFUNC(note_sub)
+DEFINE_SUB_ADDFUNC(note_sub)
+DEFINE_SUB_FINDFUNC(note_sub)
+DEFINE_SUB_REMOVEFUNC(note_sub)
+DEFINE_SUB_MOVEFUNC(note_sub)
      
 DEFINE_ADDFUNC2(note_sub, source_citation, citation)
 DEFINE_ADDFUNC2(note_sub, user_data, extra)