summaryrefslogtreecommitdiff
path: root/src/lib/ecore_evas
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2017-06-09 20:16:07 -0400
committerMike Blumenkrantz <zmike@osg.samsung.com>2017-06-09 19:14:58 -0400
commit98289815851bfcec0046bf27894268ce2f86db5a (patch)
tree19b02a3f9080899652c1f6aa64593c11be289673 /src/lib/ecore_evas
parent5b39bb5a3d1fc79f7efe0e978a6e2e44aeb4cb91 (diff)
ecore-evas: safety -> normal null check in ecore_evas_cursor_device_unset
if there is already no cursor then this is not an error
Diffstat (limited to 'src/lib/ecore_evas')
-rw-r--r--src/lib/ecore_evas/ecore_evas.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/ecore_evas/ecore_evas.c b/src/lib/ecore_evas/ecore_evas.c
index 991599aca3..95684597ee 100644
--- 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)
1936 pointer = evas_default_device_get(ee->evas, EFL_INPUT_DEVICE_CLASS_SEAT); 1936 pointer = evas_default_device_get(ee->evas, EFL_INPUT_DEVICE_CLASS_SEAT);
1937 if (pointer) 1937 if (pointer)
1938 cursor = eina_hash_find(ee->prop.cursors, &pointer); 1938 cursor = eina_hash_find(ee->prop.cursors, &pointer);
1939 EINA_SAFETY_ON_NULL_RETURN_VAL(cursor, NULL); 1939 if (!cursor) return NULL;
1940 obj = cursor->object; 1940 obj = cursor->object;
1941 if (ee->engine.func->fn_object_cursor_unset) 1941 if (ee->engine.func->fn_object_cursor_unset)
1942 ee->engine.func->fn_object_cursor_unset(ee); 1942 ee->engine.func->fn_object_cursor_unset(ee);