Skip to content

Truly independent web browser

LibWeb: Root the values of a CSSFontFeatureValuesMap entry

Shannon Booth3d900c22c316
diff --git a/Libraries/LibWeb/CSS/CSSFontFeatureValuesMap.cpp b/Libraries/LibWeb/CSS/CSSFontFeatureValuesMap.cpp
index 2c81de9344c..c7c636bd742 100644
--- a/Libraries/LibWeb/CSS/CSSFontFeatureValuesMap.cpp
+++ b/Libraries/LibWeb/CSS/CSSFontFeatureValuesMap.cpp
@@ -114,7 +114,7 @@ static WrapperWorldWeakValueCache<JS::Map>& entries_cache_for(CSS::CSSFontFeatur
static GC::Ref<JS::Array> create_map_value(JS::Realm& realm, Vector<u32> const& values)
{
- Vector<JS::Value> wrapped_values;
+ GC::RootVector<JS::Value> wrapped_values;
wrapped_values.ensure_capacity(values.size());
for (auto const& value : values)