LibWeb: Make HTMLMediaElement's FetchController reference weak

This allows the FetchController to be reclaimed when the fetch
completes.
This commit is contained in:
Zaggy1024
2026-02-17 18:06:40 -06:00
committed by Gregory Bertilson
parent 7c0802bd4f
commit ad92622cf4
Notes: github-actions[bot] 2026-02-18 19:14:32 +00:00
2 changed files with 1 additions and 2 deletions

View File

@@ -105,7 +105,6 @@ void HTMLMediaElement::visit_edges(Cell::Visitor& visitor)
visitor.visit(m_text_tracks);
visitor.visit(m_document_observer);
visitor.visit(m_source_element_selector);
visitor.visit(m_fetch_controller);
visitor.visit(m_pending_play_promises);
visitor.visit(m_selected_video_track);
}

View File

@@ -351,7 +351,7 @@ private:
GC::Ptr<SourceElementSelector> m_source_element_selector;
GC::Ptr<Fetch::Infrastructure::FetchController> m_fetch_controller;
GC::Weak<Fetch::Infrastructure::FetchController> m_fetch_controller;
u32 m_current_fetch_generation { 0 };
RefPtr<Media::PlaybackManager> m_playback_manager;