mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 17:55:07 +02:00
LibWeb/HTML: Unregister ESO during finalize phase
It is generally safer for GC cells to do cleanup work during the finalize phase.
This commit is contained in:
committed by
Jelle Raaijmakers
parent
3c0b125c1c
commit
00002c6443
Notes:
github-actions[bot]
2025-06-18 11:09:44 +00:00
Author: https://github.com/shannonbooth Commit: https://github.com/LadybirdBrowser/ladybird/commit/00002c6443e Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5129 Reviewed-by: https://github.com/gmta ✅
@@ -44,9 +44,10 @@ EnvironmentSettingsObject::EnvironmentSettingsObject(NonnullOwnPtr<JS::Execution
|
||||
responsible_event_loop().register_environment_settings_object({}, *this);
|
||||
}
|
||||
|
||||
EnvironmentSettingsObject::~EnvironmentSettingsObject()
|
||||
void EnvironmentSettingsObject::finalize()
|
||||
{
|
||||
responsible_event_loop().unregister_environment_settings_object({}, *this);
|
||||
Base::finalize();
|
||||
}
|
||||
|
||||
void EnvironmentSettingsObject::initialize(JS::Realm& realm)
|
||||
|
||||
Reference in New Issue
Block a user