File tree Expand file tree Collapse file tree 3 files changed +8
-1
lines changed
Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -68,4 +68,6 @@ selectolax/lexbor.c
6868
6969# virtual env
7070.venv /
71- venv /
71+ venv /
72+
73+ tmp /
Original file line number Diff line number Diff line change 44- Fix incorrect default value in docstrings for strict argument
55- Fix incorrect exception handling for ` any_css_matches `
66- Fix docstring for ` css_first ` method
7+ - Fix memory leak in ` merge_text_nodes ` for lexbor backend
78
89
910## Version 0.3.34
Original file line number Diff line number Diff line change @@ -518,6 +518,10 @@ cdef class LexborNode:
518518 combined = (< bytes> left_text[:left_length]) + (< bytes> right_text[:right_length])
519519 lxb_dom_node_text_content_set(node, combined, len (combined))
520520 lxb_dom_node_remove(node.prev)
521+
522+ lxb_dom_document_destroy_text_noi(self .node.owner_document, left_text)
523+ lxb_dom_document_destroy_text_noi(self .node.owner_document, right_text)
524+
521525 if node.first_child:
522526 LexborNode.new(node, self .parser).merge_text_nodes()
523527 node = next_node
You can’t perform that action at this time.
0 commit comments