mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-28 22:53:28 +00:00
deinit persistent promise resolver
This commit is contained in:
@@ -88,6 +88,7 @@ pub const FetchContext = struct {
|
||||
};
|
||||
|
||||
resolver.reject("TypeError") catch unreachable;
|
||||
self.promise_resolver.deinit();
|
||||
}
|
||||
}
|
||||
};
|
||||
@@ -175,6 +176,7 @@ pub fn fetch(input: RequestInput, options: ?RequestInit, page: *Page) !Env.Promi
|
||||
.done_callback = struct {
|
||||
fn doneCallback(ctx: *anyopaque) !void {
|
||||
const self: *FetchContext = @ptrCast(@alignCast(ctx));
|
||||
defer self.promise_resolver.deinit();
|
||||
self.transfer = null;
|
||||
|
||||
log.info(.http, "request complete", .{
|
||||
|
||||
Reference in New Issue
Block a user