cedric pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=bff5c37c1b864c376f46721e33ffdd28697711cd

commit bff5c37c1b864c376f46721e33ffdd28697711cd
Author: Cedric Bail <ced...@osg.samsung.com>
Date:   Tue May 8 18:46:53 2018 -0700

    ecore_evas: we shouldn't do anything when we are deleted.
---
 src/modules/ecore_evas/engines/x/ecore_evas_x.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/modules/ecore_evas/engines/x/ecore_evas_x.c 
b/src/modules/ecore_evas/engines/x/ecore_evas_x.c
index 124738e762..3d88e9aae3 100644
--- a/src/modules/ecore_evas/engines/x/ecore_evas_x.c
+++ b/src/modules/ecore_evas/engines/x/ecore_evas_x.c
@@ -227,6 +227,7 @@ _ecore_evas_x_protocols_set(Ecore_Evas *ee)
    Ecore_X_Atom protos[3];
    unsigned int num = 0, tmp = 0;
 
+   if (ee->deleted) return;
    if (ee->func.fn_delete_request)
      protos[num++] = ECORE_X_ATOM_WM_DELETE_WINDOW;
    protos[num++] = ECORE_X_ATOM_NET_WM_PING;
@@ -254,6 +255,7 @@ _ecore_evas_x_sync_set(Ecore_Evas *ee)
    Ecore_Evas_Engine_Data_X11 *edata = ee->engine.data;
    Ecore_X_Sync_Counter sync_counter = edata->sync_counter;
 
+   if (ee->deleted) return;
    if (((ee->should_be_visible) || (ee->visible)) &&
        ((ecore_x_e_comp_sync_supported_get(edata->win_root)) &&
            (!ee->no_comp_sync) && (_ecore_evas_app_comp_sync)))

-- 


Reply via email to