summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafael Antognolli <rafael.antognolli@linux.intel.com>2013-03-20 18:04:16 -0300
committerChris Michael <cp.michael@samsung.com>2013-03-26 08:53:34 +0000
commit94de8c6549bc24133a1b789f13fdd8c097352f22 (patch)
treedaa9b56a3d003028e94d504938136fed4787360e
parenta2bccf3e533b2e95272de93bce6e9286b0c97af0 (diff)
ecore_evas/wayland_shm: Check if the Ecore_Evas is visible on render.devs/devilhorns/wayland
Without this check, the code tries to access win->surface, which will be NULL, causing a segfault. Fix ticket #2304.
-rw-r--r--src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c b/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c
index 8aee6989fc..ee17249a21 100644
--- a/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c
+++ b/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c
@@ -862,6 +862,11 @@ _ecore_evas_wl_common_render(Ecore_Evas *ee)
862 /* TODO: handle comp no sync */ 862 /* TODO: handle comp no sync */
863 863
864 if (ee->in_async_render) return 0; 864 if (ee->in_async_render) return 0;
865 if (!ee->visible)
866 {
867 evas_norender(ee->evas);
868 return 0;
869 }
865 870
866 EINA_LIST_FOREACH(ee->sub_ecore_evas, l, ee2) 871 EINA_LIST_FOREACH(ee->sub_ecore_evas, l, ee2)
867 { 872 {