summaryrefslogtreecommitdiff
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
parent1af18a8c85119969746647094355411f62d60084 (diff)
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 fc39507..4a47614 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
632 632
633 if ((window->transparent) || (window->alpha)) return; 633 if ((window->transparent) || (window->alpha)) return;
634 634
635 EINA_SAFETY_ON_NULL_RETURN(window->display->wl.compositor);
636
635 region = wl_compositor_create_region(window->display->wl.compositor); 637 region = wl_compositor_create_region(window->display->wl.compositor);
636 if (!region) 638 if (!region)
637 { 639 {