We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e7dcb8a commit 402f72cCopy full SHA for 402f72c
src/browser/browser.zig
@@ -153,7 +153,7 @@ pub const Session = struct {
153
}
154
155
fn deinit(self: *Session) void {
156
- if (self.page) |*p| p.end();
+ if (self.page) |*p| p.deinit();
157
158
if (self.inspector) |inspector| {
159
inspector.deinit(self.alloc);
@@ -265,6 +265,7 @@ pub const Page = struct {
265
self.session.window.replaceLocation(&self.location) catch |e| {
266
log.err("reset window location: {any}", .{e});
267
};
268
+ self.doc = null;
269
270
// clear netsurf memory arena.
271
parser.deinit();
@@ -273,6 +274,7 @@ pub const Page = struct {
273
274
275
276
pub fn deinit(self: *Page) void {
277
+ self.end();
278
self.arena.deinit();
279
self.session.page = null;
280
0 commit comments