fix: conform to libcurl requirements to avoid memory leak (#5702)

This commit is contained in:
tearfur
2023-07-06 11:05:03 +08:00
committed by GitHub
parent f83a60830a
commit 2211086338
17 changed files with 78 additions and 39 deletions

View File

@@ -200,6 +200,8 @@ static std::string getConfigDir(int argc, char const** argv)
int tr_main(int argc, char* argv[])
{
auto const init_mgr = tr_lib_init();
tr_locale_set_global("");
tr_variant settings;