ecore-evas: safety -> normal null check in ecore_evas_cursor_device_unset
authorMike Blumenkrantz <zmike@osg.samsung.com>
Sat, 10 Jun 2017 00:16:07 +0000 (20:16 -0400)
committerMike 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

index 991599a..9568459 100644 (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);