diff --git a/src/filesys.cpp b/src/filesys.cpp index 806b74f9..694d9882 100644 --- a/src/filesys.cpp +++ b/src/filesys.cpp @@ -8648,7 +8648,10 @@ void filesys_cleanup(void) free_mountinfo(); destroy_comm_pipe(&shellexecute_pipe); if (singlethread_int_sem != nullptr) + { uae_sem_destroy(&singlethread_int_sem); + singlethread_int_sem == nullptr; + } shell_execute_data = 0; }