Truly independent web browser
LibWeb: Root the node set of an XPath result
Shannon Booth6f55e9cd39b6
diff --git a/Libraries/LibWeb/XPath/XPath.cpp b/Libraries/LibWeb/XPath/XPath.cppindex f9f6e3010b1..bdf89f6b448 100644--- a/Libraries/LibWeb/XPath/XPath.cpp+++ b/Libraries/LibWeb/XPath/XPath.cpp@@ -132,7 +132,7 @@ static void convert_xpath_result(xmlXPathObjectPtr xpath_result, GC::Ptr<XPath::case XPATH_UNDEFINED:break;case XPATH_NODESET: {- Vector<GC::Ptr<DOM::Node>> node_list;+ GC::RootVector<GC::Ptr<DOM::Node>> node_list;if (xpath_result->nodesetval && xpath_result->nodesetval->nodeNr > 0) {node_list.ensure_capacity(xpath_result->nodesetval->nodeNr);