raster pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=45f01bd11c45fd50c252e9ff14d33975614e7aa6

commit 45f01bd11c45fd50c252e9ff14d33975614e7aa6
Author: Carsten Haitzler (Rasterman) <[email protected]>
Date:   Wed Jul 16 16:14:41 2014 +0900

    eina - thread queue - fix block pool shutdown
---
 src/lib/eina/eina_thread_queue.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/lib/eina/eina_thread_queue.c b/src/lib/eina/eina_thread_queue.c
index 3a999aa..d36669e 100644
--- a/src/lib/eina/eina_thread_queue.c
+++ b/src/lib/eina/eina_thread_queue.c
@@ -160,14 +160,15 @@ _eina_thread_queue_msg_block_pool_shutdown(void)
    eina_spinlock_take(&(_eina_thread_queue_block_pool_lock));
    while (_eina_thread_queue_block_pool)
      {
-        Eina_Thread_Queue_Msg_Block *blk;
+        Eina_Thread_Queue_Msg_Block *blk, *blknext;
 
         for (;;)
           {
              blk = _eina_thread_queue_block_pool;
              if (!blk) break;
+             blknext = blk->next;
              _eina_thread_queue_msg_block_real_free(blk);
-             _eina_thread_queue_block_pool = blk->next;
+             _eina_thread_queue_block_pool = blknext;
           }
      }
    eina_spinlock_free(&_eina_thread_queue_block_pool_lock);

-- 


Reply via email to