ecore_wl2: Better handling of extra commit

Discard the old callback so it can't fire later - which can happen after
the window's deleted in certain cases.
This commit is contained in:
Derek Foreman 2017-12-13 16:34:10 -06:00
parent 55b8cf8244
commit 51599fe86c
1 changed files with 4 additions and 2 deletions

View File

@ -1483,8 +1483,10 @@ ecore_wl2_window_commit(Ecore_Wl2_Window *window, Eina_Bool flush)
EINA_SAFETY_ON_NULL_RETURN(window->surface);
if (window->commit_pending)
ERR("Commit before previous commit processed");
{
wl_callback_destroy(window->callback);
ERR("Commit before previous commit processed");
}
if (!window->pending.configure)
{
window->commit_pending = EINA_TRUE;