Merge pull request #2578 from lightpanda-io/cookie_store_crash_fix

Close session before freeing notification
This commit is contained in:
Karl Seguin
2026-05-30 10:12:49 +08:00
committed by GitHub

View File

@@ -67,6 +67,7 @@ pub fn fetch(app: *App, browser: *Browser, url: [:0]const u8, opts: FetchOpts) !
defer notification.deinit();
var session = try browser.newSession(notification);
defer browser.closeSession();
if (app.config.cookieFile()) |cookie_path| {
cookies.loadFromFile(session, cookie_path);