eio: fix poll backend
authorMarcel Hollerbach <mail@marcel-hollerbach.de>
Sun, 12 Aug 2018 08:21:19 +0000 (10:21 +0200)
committerShinwoo Kim <cinoo.kim@samsung.com>
Fri, 17 Aug 2018 04:15:02 +0000 (13:15 +0900)
it seems that this should have been a pop call, not the function
pointer. This key eina_array_pop is never used. Nor would the array get
smaller, so i assume this should be a pop call.

Differential Revision: https://phab.enlightenment.org/D6814

src/lib/eio/eio_monitor_poll.c

index c7f2080..2788aee 100644 (file)
@@ -226,7 +226,7 @@ _eio_monitor_fallback_heavy_cb(void *data, Ecore_Thread *thread)
 
         ecore_thread_main_loop_end();
         while (eina_array_count(arr))
-          eina_hash_del_by_key(backend->children, eina_array_pop);
+          eina_hash_del_by_key(backend->children, eina_array_pop(arr));
         eina_array_free(arr);
         eina_iterator_free(it);
      }