From 06332d4f2ef9871307be874ca2d8fea7969b0294 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mart=C3=ADn=20Lucas=20Golini?= Date: Sun, 8 Mar 2026 16:19:56 -0300 Subject: [PATCH] Fix stupid crash in tests. --- src/eepp/ui/uiscenenode.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/eepp/ui/uiscenenode.cpp b/src/eepp/ui/uiscenenode.cpp index 64619232a..1089ca2e7 100644 --- a/src/eepp/ui/uiscenenode.cpp +++ b/src/eepp/ui/uiscenenode.cpp @@ -455,8 +455,7 @@ UIWidget* UISceneNode::loadLayoutFromFile( const std::string& layoutPath, Node* UIWidget* UISceneNode::loadLayoutFromString( const char* layoutString, Node* parent, const Uint32& marker ) { - thread_local static EE::System::RegEx voidTagsRegex( - "(<(?:img|br|hr|input|meta|link)\\b[^>]*?)(?" ); + RegEx voidTagsRegex( "(<(?:img|br|hr|input|meta|link)\\b[^>]*?)(?" ); pugi::xml_document doc; pugi::xml_parse_result result; @@ -487,8 +486,7 @@ UIWidget* UISceneNode::loadLayoutFromString( const std::string& layoutString, No UIWidget* UISceneNode::loadLayoutFromMemory( const void* buffer, Int32 bufferSize, Node* parent, const Uint32& marker ) { - thread_local static EE::System::RegEx voidTagsRegex( - "(<(?:img|br|hr|input|meta|link)\\b[^>]*?)(?" ); + RegEx voidTagsRegex( "(<(?:img|br|hr|input|meta|link)\\b[^>]*?)(?" ); pugi::xml_document doc; pugi::xml_parse_result result; @@ -522,8 +520,7 @@ UIWidget* UISceneNode::loadLayoutFromStream( IOStream& stream, Node* parent, TScopedBuffer scopedBuffer( bufferSize ); stream.read( scopedBuffer.get(), scopedBuffer.length() ); - thread_local static EE::System::RegEx voidTagsRegex( - "(<(?:img|br|hr|input|meta|link)\\b[^>]*?)(?" ); + RegEx voidTagsRegex( "(<(?:img|br|hr|input|meta|link)\\b[^>]*?)(?" ); pugi::xml_document doc; pugi::xml_parse_result result;