ecore-evas-wayland: Fix potential null dereference
authorChris Michael <cp.michael@samsung.com>
Wed, 7 Jun 2017 17:37:30 +0000 (13:37 -0400)
committerChris Michael <cp.michael@samsung.com>
Thu, 8 Jun 2017 14:01:52 +0000 (10:01 -0400)
Quick patch to fix a potential null derefence in render_flush_pre
callback.

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c

index aca1b6d..30ddb30 100644 (file)
@@ -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);