evas-wayland-shm: Don't post updates to surface if no surface
authorChris Michael <cp.michael@samsung.com>
Fri, 28 Oct 2016 12:57:10 +0000 (08:57 -0400)
committerChris Michael <cp.michael@samsung.com>
Fri, 28 Oct 2016 13:55:27 +0000 (09:55 -0400)
commit21a8fbde7e781a7a681db7ec5d1506dd3e582386
tree0819f36a2ed6b1f1cebe56ee6fed0eb27c50320a
parent2c09a35b6cbc331776e434c07645875a66f0cc47
evas-wayland-shm: Don't post updates to surface if no surface

In the event that an ecore_evas (using wayland_shm) gets hidden then
the corresponding wl_surface gets destroyed. If evas_norender is
called after that, the outbuf_redraws_clear function follows.
Outbuf_redraw_clear function ends up trying to post updates to the
wl_surface however if that wl_surface is gone, then we end up crashing.

This patch addresses that issue by checking for a valid wl_surface
inside the engine before trying to post updates to that wl_surface.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
src/modules/evas/engines/wayland_shm/evas_outbuf.c