mirror of
https://github.com/godotengine/godot.git
synced 2024-11-27 09:16:35 +08:00
Merge pull request #40930 from Xrayez/fix-leak-test-args
Fix memory leak in test args
This commit is contained in:
commit
bc813fd061
@ -84,6 +84,9 @@ int test_main(int argc, char *argv[]) {
|
||||
test_context.setOption("abort-after", 5);
|
||||
test_context.setOption("no-breaks", true);
|
||||
|
||||
for (int x = 0; x < valid_arguments.size(); x++) {
|
||||
delete[] args[x];
|
||||
}
|
||||
delete[] args;
|
||||
|
||||
return test_context.run();
|
||||
|
Loading…
Reference in New Issue
Block a user