Set runloop_msg_queue_lock back to NULL after freeing it

This commit is contained in:
Twinaphex 2015-12-07 07:48:14 +01:00
parent c2e0e8d9fb
commit 9ea78c19c7

View File

@ -761,6 +761,7 @@ bool runloop_ctl(enum runloop_ctl_state state, void *data)
#ifdef HAVE_THREADS
slock_free(runloop_msg_queue_lock);
#endif
runloop_msg_queue_lock = NULL;
break;
case RUNLOOP_CTL_MSG_QUEUE_DEINIT:
if (!g_msg_queue)