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:
5b39bb5
)
ecore-evas: safety -> normal null check in ecore_evas_cursor_device_unset
author
Mike Blumenkrantz
<zmike@osg.samsung.com>
Sat, 10 Jun 2017 00:16:07 +0000
(20:16 -0400)
committer
Mike Blumenkrantz
<zmike@osg.samsung.com>
Fri, 9 Jun 2017 23:14:58 +0000
(19:14 -0400)
if there is already no cursor then this is not an error
src/lib/ecore_evas/ecore_evas.c
patch
|
blob
|
history
diff --git
a/src/lib/ecore_evas/ecore_evas.c
b/src/lib/ecore_evas/ecore_evas.c
index
991599a
..
9568459
100644
(file)
--- a/
src/lib/ecore_evas/ecore_evas.c
+++ b/
src/lib/ecore_evas/ecore_evas.c
@@
-1936,7
+1936,7
@@
ecore_evas_cursor_device_unset(Ecore_Evas *ee, Efl_Input_Device *pointer)
pointer = evas_default_device_get(ee->evas, EFL_INPUT_DEVICE_CLASS_SEAT);
if (pointer)
cursor = eina_hash_find(ee->prop.cursors, &pointer);
-
EINA_SAFETY_ON_NULL_RETURN_VAL(cursor, NULL)
;
+
if (!cursor) return NULL
;
obj = cursor->object;
if (ee->engine.func->fn_object_cursor_unset)
ee->engine.func->fn_object_cursor_unset(ee);