fix core:thread and a memory leak

in the future probably native non-pthread implementation for haiku will be required
This commit is contained in:
avanspector
2024-02-27 02:38:06 +01:00
parent 38c69b9691
commit fca691a066
3 changed files with 22 additions and 17 deletions
+2 -6
View File
@@ -898,6 +898,7 @@ gb_internal String internal_odin_root_dir(void) {
}
auto path_buf = array_make<char>(heap_allocator(), 300);
defer (array_free(&path_buf));
len = 0;
for (;;) {
@@ -930,9 +931,6 @@ gb_internal String internal_odin_root_dir(void) {
global_module_path = path;
global_module_path_set = true;
// array_free(&path_buf);
return path;
}
@@ -952,6 +950,7 @@ gb_internal String internal_odin_root_dir(void) {
}
auto path_buf = array_make<char>(heap_allocator(), 300);
defer (array_free(&path_buf));
len = 0;
for (;;) {
@@ -984,9 +983,6 @@ gb_internal String internal_odin_root_dir(void) {
global_module_path = path;
global_module_path_set = true;
// array_free(&path_buf);
return path;
}
#else