mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 14:47:35 +00:00
LibWeb: Unregister AnimationTimeline from document in finalize()
...instead of destructor because by the time it is executed, document could already be destroyed.
This commit is contained in:
parent
bcdf4a375d
commit
2129c5d8b0
2 changed files with 2 additions and 2 deletions
|
@ -48,7 +48,7 @@ AnimationTimeline::AnimationTimeline(JS::Realm& realm)
|
|||
{
|
||||
}
|
||||
|
||||
AnimationTimeline::~AnimationTimeline()
|
||||
void AnimationTimeline::finalize()
|
||||
{
|
||||
if (m_associated_document)
|
||||
m_associated_document->disassociate_with_timeline(*this);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue