evas-wayland-shm: Do not dereference a potentially freed pointer
authorChris Michael <cp.michael@samsung.com>
Mon, 6 Nov 2017 15:02:35 +0000 (10:02 -0500)
committerChris Michael <cp.michael@samsung.com>
Mon, 6 Nov 2017 15:02:35 +0000 (10:02 -0500)
commitfd79e32dbd004ebe71ef6d090fe8ad7ecfdb7b12
treebe95d0eba275d7d7e7fe7962cb547682c38683f7
parentde1e18ef7d1c13471992035467ea099f3b97c55c
evas-wayland-shm: Do not dereference a potentially freed pointer

Coverity reports that _evas_dmabuf_buffer_init function here can
potentially free the surface that was passed into it. If that happens,
we should not be calling the _fallback function with surface as the
parameter as that will directly dereference the freed pointer.

Fixes Coverity CID1381707

@fix

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