You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-14 13:41:12 +00:00
Fix for RegEx.search() memory leak on Windows
(cherry picked from commit 6556442d46)
This commit is contained in:
committed by
Rémi Verschelde
parent
d3528314b2
commit
a47188f2ce
@@ -246,6 +246,8 @@ Ref<RegExMatch> RegEx::search(const String &p_subject, int p_offset, int p_end)
|
||||
|
||||
if (res < 0) {
|
||||
pcre2_match_data_free_16(match);
|
||||
pcre2_match_context_free_16(mctx);
|
||||
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user