aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2016-07-26 12:43:24 -0400
committerChris Michael <cp.michael@samsung.com>2016-07-26 12:43:24 -0400
commited55b1f733599f82d3b820d926546e0586731184 (patch)
tree8135a14a00671129a35b81eb4266dad2efb7437f
parentrelease: Update NEWS and bump version for 1.18.0-beta1 release (diff)
downloadefl-ed55b1f733599f82d3b820d926546e0586731184.tar.gz
ecore-wl2: Add safety check for valid compositor
As we cannot create a new wl_region without a valid compositor, add a safety check. @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
-rw-r--r--src/lib/ecore_wl2/ecore_wl2_window.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/ecore_wl2/ecore_wl2_window.c b/src/lib/ecore_wl2/ecore_wl2_window.c
index fc395072d9..4a47614903 100644
--- a/src/lib/ecore_wl2/ecore_wl2_window.c
+++ b/src/lib/ecore_wl2/ecore_wl2_window.c
@@ -632,6 +632,8 @@ ecore_wl2_window_opaque_region_set(Ecore_Wl2_Window *window, int x, int y, int w
if ((window->transparent) || (window->alpha)) return;
+ EINA_SAFETY_ON_NULL_RETURN(window->display->wl.compositor);
+
region = wl_compositor_create_region(window->display->wl.compositor);
if (!region)
{