From: Chris Michael Date: Wed, 7 Jun 2017 17:37:30 +0000 (-0400) Subject: ecore-evas-wayland: Fix potential null dereference X-Git-Tag: upstream/1.20.0~715 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c0458aae38cb38263e4af0e2c8f7ba3a6367dd19;p=platform%2Fupstream%2Fefl.git ecore-evas-wayland: Fix potential null dereference Quick patch to fix a potential null derefence in render_flush_pre callback. @fix Signed-off-by: Chris Michael --- 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 aca1b6d..30ddb30 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 @@ -1366,6 +1366,8 @@ _ecore_evas_wl_common_render_flush_pre(void *data, Evas *evas, void *event EINA_ if (!surf) return; wdata = ee->engine.data; + if (!wdata) return; + if (wdata->win->pending.configure) return; wdata->anim_callback = wl_surface_frame(surf);