Truly independent web browser
LibWeb: Root the texts whose spelling markers a removed word changes
Shannon Booth302a7cfc303a
diff --git a/Libraries/LibWeb/Editing/SpellingMarkers.cpp b/Libraries/LibWeb/Editing/SpellingMarkers.cppindex 5703e8d750d..728ded21e52 100644--- a/Libraries/LibWeb/Editing/SpellingMarkers.cpp+++ b/Libraries/LibWeb/Editing/SpellingMarkers.cpp@@ -71,7 +71,7 @@ void SpellingMarkers::remove_all(DOM::Text& text)void SpellingMarkers::remove_markers_for_word(Utf16View word){- Vector<GC::Ref<DOM::Text>> changed;+ GC::RootVector<GC::Ref<DOM::Text>> changed;m_markers.for_each_live_value([&](NodeMarkers& entry) {auto text = entry.text.ptr();if (!text)