From: Jérémie Astor Date: Wed, 27 Apr 2022 11:36:20 +0000 (+0200) Subject: :bug: Fix segfault add exit fix some thread plugins X-Git-Tag: nightly~275^2~28 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=f9b063ae823af79b2d9157c7a14cd8ea9db55e4c;p=gwion.git :bug: Fix segfault add exit fix some thread plugins --- diff --git a/src/main.c b/src/main.c index 61eda482..0a78f51e 100644 --- a/src/main.c +++ b/src/main.c @@ -49,10 +49,7 @@ int main(int argc, char **argv) { if (ini > 0) gwion_run(&gwion); gwion_end(&gwion); gwion.vm = NULL; -#ifndef BUILD_ON_WINDOWS - pthread_exit(NULL); -#endif - return EXIT_SUCCESS; + exit(EXIT_SUCCESS); } #endif