Fix eo object use after deletion in evry

On window hide the focus out callback is triggering and causing a new
timer to be set up.  This timer fires when the window no longer exists.

Remove the focus_out callback when we hide the window.
This commit is contained in:
Derek Foreman 2016-06-17 16:38:13 -05:00
parent 6fd2d4487f
commit 4bd97bfd5c
1 changed files with 3 additions and 0 deletions

View File

@ -320,6 +320,9 @@ evry_hide(Evry_Window *win, int clear)
if (!win) return;
evas_object_event_callback_del(win->ewin, EVAS_CALLBACK_DEL, _evry_cb_win_delete);
evas_object_event_callback_del(e_win_client_get(win->ewin)->frame,
EVAS_CALLBACK_FOCUS_OUT,
_evry_focus_out);
evas_object_hide(win->ewin);
_evry_state_clear(win);