]> git.sur5r.net Git - i3/i3/blobdiff - src/commands.c
cmd_exit: Let i3_exit handle shutdown (#3600)
[i3/i3] / src / commands.c
index 9f408eb733e370ec13b6946fae06bbef6725a862..778b4a1a9da95b43c71f3a936515d65f0c852d6c 100644 (file)
 #include <float.h>
 #include <stdarg.h>
 
-#ifdef I3_ASAN_ENABLED
-#include <sanitizer/lsan_interface.h>
-#endif
-
 #include "shmlog.h"
 
 // Macros to make the YAJL API a bit easier to use.
@@ -1573,12 +1569,6 @@ void cmd_layout_toggle(I3_CMD, const char *toggle_mode) {
  */
 void cmd_exit(I3_CMD) {
     LOG("Exiting due to user command.\n");
-#ifdef I3_ASAN_ENABLED
-    __lsan_do_leak_check();
-#endif
-    ipc_shutdown(SHUTDOWN_REASON_EXIT);
-    unlink(config.ipc_socket_path);
-    xcb_disconnect(conn);
     exit(0);
 
     /* unreached */