From c0458aae38cb38263e4af0e2c8f7ba3a6367dd19 Mon Sep 17 00:00:00 2001 From: Chris Michael Date: Wed, 7 Jun 2017 13:37:30 -0400 Subject: [PATCH] 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 --- .../ecore_evas/engines/wayland/ecore_evas_wayland_common.c | 2 ++ 1 file changed, 2 insertions(+) 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 aca1b6d18a..30ddb30f06 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);