From e2022f415732acf971e5efd05936a07ef5590636 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Andre Date: Fri, 10 Apr 2015 10:49:02 +0900 Subject: [PATCH] eina: Add NULL check for eina_threadqueue_free @fix --- src/lib/eina/eina_thread_queue.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib/eina/eina_thread_queue.c b/src/lib/eina/eina_thread_queue.c index 4a3701d84b..29a79b261e 100644 --- a/src/lib/eina/eina_thread_queue.c +++ b/src/lib/eina/eina_thread_queue.c @@ -365,6 +365,8 @@ eina_thread_queue_new(void) EAPI void eina_thread_queue_free(Eina_Thread_Queue *thq) { + if (!thq) return; + #ifndef ATOMIC eina_spinlock_free(&(thq->lock_pending)); #endif