From 1cdfab8ac9227920ae407c0907d13944f321609d Mon Sep 17 00:00:00 2001 From: sunghyun kim Date: Fri, 23 Sep 2016 11:15:02 +0900 Subject: [PATCH] ecore_evas_wayland_common: fix dereferenced bug Change-Id: Iceb797cb05bbcf58ca8426d5bada6c8b1ef0d345 --- src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 d980471..f60cb8d 100755 --- a/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c +++ b/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c @@ -1732,6 +1732,7 @@ _ecore_evas_wl_common_render_flush_pre(void *data, Evas *evas EINA_UNUSED, void if (!ee->visible) return; wdata = ee->engine.data; + if(!wdata) return; if (ee->can_async_render) { struct wl_surface *surf = ecore_wl_window_surface_get(wdata->win); @@ -1744,7 +1745,7 @@ _ecore_evas_wl_common_render_flush_pre(void *data, Evas *evas EINA_UNUSED, void } } - if ((wdata) && (wdata->wm_rot.done) && + if ((wdata->wm_rot.done) && (!ee->prop.wm_rot.manual_mode.set)) { wdata->wm_rot.request = 0; -- 2.7.4