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 <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2017-06-07 13:37:30 -04:00
parent 2aa9538f73
commit c0458aae38
1 changed files with 2 additions and 0 deletions

View 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);