Main: delete the EventLoop after everything else
Fixes crash when another object attempts to access the EventLoop during destruction.
This commit is contained in:
parent
f260cd031c
commit
3576a8fd9f
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user