mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-28 22:53:28 +00:00
fix memory leak
This commit is contained in:
@@ -230,7 +230,7 @@ pub fn addFromElement(self: *ScriptManager, element: *parser.Element) !void {
|
||||
errdefer pending_script.deinit();
|
||||
|
||||
var headers = try HttpClient.Headers.init();
|
||||
try page.requestCookie(.{}).headersForRequest(self.allocator, remote_url.?, &headers);
|
||||
try page.requestCookie(.{}).headersForRequest(page.arena, remote_url.?, &headers);
|
||||
|
||||
try self.client.request(.{
|
||||
.url = remote_url.?,
|
||||
|
||||
Reference in New Issue
Block a user