mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-29 07:03:29 +00:00
dom: deinit matcher with HTMLCollection
This commit is contained in:
@@ -73,6 +73,10 @@ pub const HTMLCollection = struct {
|
||||
cur_idx: ?u32 = undefined,
|
||||
cur_node: ?*parser.Node = undefined,
|
||||
|
||||
pub fn deinit(self: *HTMLCollection, allocator: std.mem.Allocator) void {
|
||||
self.match.deinit(allocator);
|
||||
}
|
||||
|
||||
// get_next iterates over the DOM tree to return the next following node or
|
||||
// null at the end.
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user