Fix memory leaks; Adjust heap & thread stack size (#47)

This commit is contained in:
KazushiM
2022-10-31 11:12:27 +08:00
parent 859841ab8e
commit 2962163f19
4 changed files with 6 additions and 5 deletions

View File

@@ -132,7 +132,7 @@ void FileUtils::RefreshFlags(bool force)
void FileUtils::InitializeAsync()
{
Thread initThread = {0};
threadCreate(&initThread, _FileUtils_InitializeThreadFunc, NULL, NULL, 0x4000, 0x15, 0);
threadCreate(&initThread, _FileUtils_InitializeThreadFunc, NULL, NULL, 0x2000, 0x15, 0);
threadStart(&initThread);
}
@@ -228,6 +228,7 @@ void FileUtils::ParseLoaderKip() {
return;
}
}
closedir(dp);
}
delete[] full_path;
}