ecore_evas_cocoa: use Eina macro to determine the size of a static array

This commit is contained in:
Jean Guyomarc'h 2015-10-13 16:10:00 +02:00 committed by Nicolas Aguirre
parent 1af0d97582
commit 7adfc5a56c
1 changed files with 1 additions and 1 deletions

View File

@ -338,7 +338,7 @@ _ecore_evas_cocoa_shutdown(void)
EINA_LIST_FREE(ecore_evases, ee)
_ecore_evas_free(ee);
for (i = 0; i < sizeof (ecore_evas_event_handlers) / sizeof (Ecore_Event_Handler*); i++)
for (i = 0; i < EINA_C_ARRAY_LENGTH(ecore_evas_event_handlers); i++)
ecore_event_handler_del(ecore_evas_event_handlers[i]);
ecore_event_evas_shutdown();