mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-12-23 14:47:57 -05:00
reset libdom memeory on page.reset
This commit is contained in:
@@ -175,6 +175,9 @@ pub const Page = struct {
|
||||
self.http_client.abort();
|
||||
self.script_manager.reset();
|
||||
|
||||
parser.deinit();
|
||||
parser.init();
|
||||
|
||||
self.load_state = .parsing;
|
||||
self.mode = .{ .pre = {} };
|
||||
_ = self.session.browser.page_arena.reset(.{ .retain_with_limit = 1 * 1024 * 1024 });
|
||||
|
||||
Reference in New Issue
Block a user