bu5hm4n pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=4987fd4ab839a4d2acbcf63c056eade681aa92bd

commit 4987fd4ab839a4d2acbcf63c056eade681aa92bd
Author: Mike Blumenkrantz <[email protected]>
Date:   Tue Jun 26 16:38:20 2018 -0400

    eio/fallback: always create timer hash on fallback init
    
    this is a required call in order for the fallback system to work
    
    Differential Revision: https://phab.enlightenment.org/D6439
---
 src/lib/eio/eio_monitor_poll.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/lib/eio/eio_monitor_poll.c b/src/lib/eio/eio_monitor_poll.c
index be27eaaf75..ec0a2031d3 100644
--- a/src/lib/eio/eio_monitor_poll.c
+++ b/src/lib/eio/eio_monitor_poll.c
@@ -280,13 +280,10 @@ _eio_monitor_fallback_timer_cb(void *data)
     && !defined HAVE_NOTIFY_KEVENT
 void eio_monitor_backend_init(void)
 {
-   timer_hash = eina_hash_pointer_new(NULL);
 }
 
 void eio_monitor_backend_shutdown(void)
 {
-   eina_hash_free(timer_hash);
-   timer_hash = NULL;
 }
 
 void eio_monitor_backend_add(Eio_Monitor *monitor)
@@ -303,11 +300,14 @@ void eio_monitor_backend_del(Eio_Monitor *monitor)
 void
 eio_monitor_fallback_init(void)
 {
+   timer_hash = eina_hash_pointer_new(NULL);
 }
 
 void
 eio_monitor_fallback_shutdown(void)
 {
+   eina_hash_free(timer_hash);
+   timer_hash = NULL;
 }
 
 void

-- 


Reply via email to