eina: Add NULL check for eina_threadqueue_free

@fix
This commit is contained in:
Jean-Philippe Andre 2015-04-10 10:49:02 +09:00
parent 3fd7f199da
commit e2022f4157
1 changed files with 2 additions and 0 deletions

View 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