common: flush stream in g_deinit()

unless flushing stream before exitting, `xrdp --version | cat` will
show empty output.

Fixes #1471.
This commit is contained in:
Koichiro IWAO 2020-01-07 19:24:17 +09:00
parent 677056e3c2
commit e928d8baf2
No known key found for this signature in database
GPG Key ID: 9F72CDBC01BF10EB
1 changed files with 2 additions and 0 deletions

View File

@ -166,6 +166,8 @@ g_deinit(void)
#if defined(_WIN32)
WSACleanup();
#endif
fflush(stdout);
fflush(stderr);
g_rm_temp_dir();
}