From d3c3058f160421b2120c42b8c7589bfef036ed94 Mon Sep 17 00:00:00 2001 From: FX Coudert Date: Sat, 27 Nov 2021 22:59:46 +0100 Subject: [PATCH] Mac client uses freed memory (#2234) * Update main.mm --- macosx/main.mm | 8 -------- 1 file changed, 8 deletions(-) diff --git a/macosx/main.mm b/macosx/main.mm index bb02c6a12..4cc54b66b 100644 --- a/macosx/main.mm +++ b/macosx/main.mm @@ -24,13 +24,5 @@ int main(int argc, char** argv) { - if (argc > 1 && strncmp(argv[1], "-v", 2) == 0) - { - char* env; - int debug = atoi(&argv[1][2]); - asprintf(&env, "TR_DEBUG=%d", debug); - putenv(env); - free(env); - } return NSApplicationMain(argc, (char const**)argv); }