summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean Guyomarc'h <jean.guyomarch@openwide.fr>2015-10-13 16:10:00 +0200
committerNicolas Aguirre <aguirre.nicolas@gmail.com>2015-11-10 08:32:49 +0100
commite621b2d1d46533f53df874fabb792b36b493d5d8 (patch)
treef642109ba09d9d004ef094bc1035c494d2ceb63e
parent29ccf7fbf867a89ac75a2c726b44f4d77fb0f45d (diff)
ecore_evas_cocoa: use Eina macro to determine the size of a static array
-rw-r--r--src/modules/ecore_evas/engines/cocoa/ecore_evas_cocoa.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/ecore_evas/engines/cocoa/ecore_evas_cocoa.c b/src/modules/ecore_evas/engines/cocoa/ecore_evas_cocoa.c
index 9ca0967763..95c405c7ee 100644
--- a/src/modules/ecore_evas/engines/cocoa/ecore_evas_cocoa.c
+++ b/src/modules/ecore_evas/engines/cocoa/ecore_evas_cocoa.c
@@ -338,7 +338,7 @@ _ecore_evas_cocoa_shutdown(void)
338 EINA_LIST_FREE(ecore_evases, ee) 338 EINA_LIST_FREE(ecore_evases, ee)
339 _ecore_evas_free(ee); 339 _ecore_evas_free(ee);
340 340
341 for (i = 0; i < sizeof (ecore_evas_event_handlers) / sizeof (Ecore_Event_Handler*); i++) 341 for (i = 0; i < EINA_C_ARRAY_LENGTH(ecore_evas_event_handlers); i++)
342 ecore_event_handler_del(ecore_evas_event_handlers[i]); 342 ecore_event_handler_del(ecore_evas_event_handlers[i]);
343 343
344 ecore_event_evas_shutdown(); 344 ecore_event_evas_shutdown();