mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-22 20:16:54 +03:00
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:
parent
9c32564085
commit
c07b2edd77
@ -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;
|
||||
%}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user