mirror of
https://github.com/godotengine/godot.git
synced 2024-09-20 14:32:42 +00:00
regex: Add nullptr check in _regex_free
, needed with PCRE2 10.42
Fixes #76174.
This commit is contained in:
parent
da3f725206
commit
290db4a0b6
|
@ -40,7 +40,9 @@ static void *_regex_malloc(PCRE2_SIZE size, void *user) {
|
|||
}
|
||||
|
||||
static void _regex_free(void *ptr, void *user) {
|
||||
memfree(ptr);
|
||||
if (ptr) {
|
||||
memfree(ptr);
|
||||
}
|
||||
}
|
||||
|
||||
int RegExMatch::_find(const Variant &p_name) const {
|
||||
|
|
Loading…
Reference in New Issue
Block a user