From 22a99c5b5a2a0d93a0fb5f1e7364055e2ecbc613 Mon Sep 17 00:00:00 2001 From: Derek Foreman Date: Wed, 21 Sep 2016 16:45:04 -0500 Subject: [PATCH] NULL out xwayland fd handlers after deleting them This fixes a valgrind error that can happen when we accidentally free these again later because they still had non-NULL values. --- src/modules/xwayland/e_mod_main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/modules/xwayland/e_mod_main.c b/src/modules/xwayland/e_mod_main.c index f19fee3c4..f8eb1f5c0 100644 --- a/src/modules/xwayland/e_mod_main.c +++ b/src/modules/xwayland/e_mod_main.c @@ -247,6 +247,8 @@ fail: ecore_main_fd_handler_del(exs->abs_hdlr); if (exs->unx_hdlr) ecore_main_fd_handler_del(exs->unx_hdlr); + exs->abs_hdlr = NULL; + exs->unx_hdlr = NULL; break; case -1: ERR("Failed to fork: %m");