projects
/
platform
/
upstream
/
efl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1af18a8
)
ecore-wl2: Add safety check for valid compositor
author
Chris Michael
<cp.michael@samsung.com>
Tue, 26 Jul 2016 16:43:24 +0000
(12:43 -0400)
committer
Chris Michael
<cp.michael@samsung.com>
Tue, 26 Jul 2016 16:43:24 +0000
(12:43 -0400)
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>
src/lib/ecore_wl2/ecore_wl2_window.c
patch
|
blob
|
history
diff --git
a/src/lib/ecore_wl2/ecore_wl2_window.c
b/src/lib/ecore_wl2/ecore_wl2_window.c
index
fc39507
..
4a47614
100644
(file)
--- 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)
{