summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2015-04-10 10:49:02 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2015-04-10 11:35:35 +0900
commit2d2ad94bc0a6447094b183a7610b8f4dde3a4970 (patch)
tree8281d47224f6338391eeaa20e91bd34ce70e2c15
parent342e6fcd538636b3919224c5ef66ac76baf3c62d (diff)
downloadefl-2d2ad94bc0a6447094b183a7610b8f4dde3a4970.tar.gz
eina: Add NULL check for eina_threadqueue_free
@fix
-rw-r--r--src/lib/eina/eina_thread_queue.c2
1 files changed, 2 insertions, 0 deletions
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