eina: Add NULL check for eina_threadqueue_free
authorJean-Philippe Andre <jp.andre@samsung.com>
Fri, 10 Apr 2015 01:49:02 +0000 (10:49 +0900)
committerJean-Philippe Andre <jp.andre@samsung.com>
Fri, 10 Apr 2015 02:34:50 +0000 (11:34 +0900)
@fix

src/lib/eina/eina_thread_queue.c

index 4a3701d..29a79b2 100644 (file)
@@ -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