Document.bnd: createDocumentFragment() unref fragment

The pushed fragment node holds the reference, so unref it in
the end of createDocumentFragment()

Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
This commit is contained in:
Daniel Silverstone 2019-06-01 13:59:36 +01:00
parent 9c32564085
commit c07b2edd77
1 changed files with 2 additions and 0 deletions

View File

@ -198,6 +198,8 @@ method Document::createDocumentFragment()
dukky_push_node(ctx, (dom_node *)frag);
dom_node_unref(frag); /* The pushed node holds the reference now */
return 1;
%}