summaryrefslogtreecommitdiff
path: root/src/lib/efl_wl
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2018-01-11 16:24:38 -0500
committerMike Blumenkrantz <zmike@osg.samsung.com>2018-01-12 14:58:34 -0500
commitd176fbc8068309182f2924e371b9e52bb309f237 (patch)
tree4574d79d74e9be812a96082d28f2018d612336ce /src/lib/efl_wl
parentebdfc54defbb433056be2be42c73b56bf0d5e290 (diff)
efl-wl: return NULL without error when non-extracted parent is found
in efl_wl_extracted_surface_extracted_parent_get()
Diffstat (limited to 'src/lib/efl_wl')
-rw-r--r--src/lib/efl_wl/Efl_Wl.h2
-rw-r--r--src/lib/efl_wl/efl_wl.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/efl_wl/Efl_Wl.h b/src/lib/efl_wl/Efl_Wl.h
index 1d86093e33..91e22b3a06 100644
--- a/src/lib/efl_wl/Efl_Wl.h
+++ b/src/lib/efl_wl/Efl_Wl.h
@@ -158,7 +158,7 @@ EAPI Eina_Bool efl_wl_surface_extract(Evas_Object *surface);
158EAPI Evas_Object *efl_wl_extracted_surface_object_find(void *surface_resource); 158EAPI Evas_Object *efl_wl_extracted_surface_object_find(void *surface_resource);
159 159
160/** 160/**
161 * Get the Evas_Object for an extracted surface's parent 161 * Get the Evas_Object for an extracted surface's parent, or NULL if the parent is not extracted
162 * 162 *
163 * @note Passing anything other than a valid, extracted surface guarantees a crash. 163 * @note Passing anything other than a valid, extracted surface guarantees a crash.
164 * 164 *
diff --git a/src/lib/efl_wl/efl_wl.c b/src/lib/efl_wl/efl_wl.c
index c4a7dc5551..9dc37aa177 100644
--- a/src/lib/efl_wl/efl_wl.c
+++ b/src/lib/efl_wl/efl_wl.c
@@ -5628,7 +5628,7 @@ efl_wl_extracted_surface_extracted_parent_get(Evas_Object *surface)
5628 5628
5629 if (cs->parent) 5629 if (cs->parent)
5630 { 5630 {
5631 EINA_SAFETY_ON_FALSE_RETURN_VAL(!cs->parent->extracted, NULL); 5631 if (!cs->parent->extracted) return NULL;
5632 return cs->parent->obj; 5632 return cs->parent->obj;
5633 } 5633 }
5634 return NULL; 5634 return NULL;