Commit 3576a8fd authored by Max Kellermann's avatar Max Kellermann

Main: delete the EventLoop after everything else

Fixes crash when another object attempts to access the EventLoop during destruction.
parent f260cd03
......@@ -539,8 +539,6 @@ int mpd_main(int argc, char *argv[])
/* cleanup */
delete main_loop;
#ifdef ENABLE_INOTIFY
mpd_inotify_finish();
#endif
......@@ -581,6 +579,7 @@ int mpd_main(int argc, char *argv[])
config_global_finish();
stats_global_finish();
io_thread_deinit();
delete main_loop;
daemonize_finish();
#ifdef WIN32
WSACleanup();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment