mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2024-12-01 00:21:14 +00:00
Fix crash to TCP server (WIN32).
This commit is contained in:
parent
15a2cc793a
commit
46733af348
2 changed files with 4 additions and 2 deletions
|
@ -736,7 +736,7 @@ int main(int argc, char** argv)
|
|||
|
||||
cleanup:
|
||||
|
||||
#if !defined(MACINTOSH) && !defined(WIN32)
|
||||
#if !defined(MACINTOSH)
|
||||
if (server != NULL) {
|
||||
/* if the user typed 'quit' in the shell, kill the server */
|
||||
if (!interactive) {
|
||||
|
|
|
@ -1161,8 +1161,10 @@ void delete_fluid_server_socket(fluid_server_socket_t *server_socket)
|
|||
if (server_socket->socket != INVALID_SOCKET)
|
||||
fluid_socket_close (server_socket->socket);
|
||||
|
||||
if (server_socket->thread)
|
||||
if (server_socket->thread) {
|
||||
fluid_thread_join(server_socket->thread);
|
||||
delete_fluid_thread (server_socket->thread);
|
||||
}
|
||||
|
||||
FLUID_FREE (server_socket);
|
||||
|
||||
|
|
Loading…
Reference in a new issue