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.
This commit is contained in:
Derek Foreman 2016-09-21 16:45:04 -05:00
parent 494f76b0ab
commit 22a99c5b5a
1 changed files with 2 additions and 0 deletions

View File

@ -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");