mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-04 18:23:39 +00:00
LibWeb: Stop the video decoder thread when the video element is GC'd
Otherwise, the thread will continue to run and access the media data buffer, which will have been freed. The test here is a bit strange, but the issue would only consistently repro after several GC runs.
This commit is contained in:
parent
f13ccb9a61
commit
f6407276f7
Notes:
sideshowbarker
2024-07-17 02:22:23 +09:00
Author: https://github.com/trflynn89
Commit: f6407276f7
Pull-request: https://github.com/SerenityOS/serenity/pull/24110
Issue: https://github.com/SerenityOS/serenity/issues/24044
8 changed files with 45 additions and 2 deletions
|
@ -46,6 +46,7 @@ private:
|
|||
HTMLVideoElement(DOM::Document&, DOM::QualifiedName);
|
||||
|
||||
virtual void initialize(JS::Realm&) override;
|
||||
virtual void finalize() override;
|
||||
virtual void visit_edges(Cell::Visitor&) override;
|
||||
|
||||
virtual void attribute_changed(FlyString const& name, Optional<String> const& value) override;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue