mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-26 11:20:03 +00:00
LibWeb: Don't hold on to the Download instance after it's finished
Fixes* 4668
This commit is contained in:
committed by
Andreas Kling
parent
a6b04cf8ef
commit
83fed3fd5d
@@ -184,6 +184,7 @@ void ResourceLoader::load(const LoadRequest& request, Function<void(ReadonlyByte
|
||||
error_callback("HTTP load failed");
|
||||
return;
|
||||
}
|
||||
deferred_invoke([&](auto&) { const_cast<RefPtr<Protocol::Download>&>(download) = nullptr; });
|
||||
success_callback(payload, response_headers);
|
||||
};
|
||||
download->set_should_buffer_all_input(true);
|
||||
|
||||
Reference in New Issue
Block a user