dom: deinit matcher with HTMLCollection

This commit is contained in:
Pierre Tachoire
2023-11-17 16:41:42 +01:00
parent 78e2f70cfb
commit 9b94a4ec49

View File

@@ -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.
//