derekf pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=22a99c5b5a2a0d93a0fb5f1e7364055e2ecbc613

commit 22a99c5b5a2a0d93a0fb5f1e7364055e2ecbc613
Author: Derek Foreman <der...@osg.samsung.com>
Date:   Wed Sep 21 16:45:04 2016 -0500

    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 f19fee3..f8eb1f5 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");

-- 


Reply via email to