mirror of
https://github.com/godotengine/godot.git
synced 2024-11-25 13:43:15 +00:00
Fix detected leaks/heap-use-after-free by AddressSanitizer at startup
This commit is contained in:
parent
e937963007
commit
3f94ea6271
@ -175,7 +175,7 @@ int detect_prime() {
|
||||
close(fdset[0]);
|
||||
|
||||
} else {
|
||||
// In child, exit() here will not quit the engine.
|
||||
// In child, killing this process will not quit the engine.
|
||||
|
||||
char string[201];
|
||||
|
||||
@ -203,7 +203,7 @@ int detect_prime() {
|
||||
print_verbose("Couldn't write vendor/renderer string.");
|
||||
}
|
||||
close(fdset[1]);
|
||||
exit(0);
|
||||
raise(SIGINT);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user