ecore-evas: safety -> normal null check in ecore_evas_cursor_device_unset

if there is already no cursor then this is not an error
This commit is contained in:
Mike Blumenkrantz 2017-06-09 20:16:07 -04:00
parent 5b39bb5a3d
commit 9828981585
1 changed files with 1 additions and 1 deletions

View File

@ -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);