-/* Internal function: free the event queue and all the objects allocated in
-events_init(). */
-void
-events_free()
-{
- g_mutex_lock(event_lock);
- g_queue_foreach(event_queue, (GFunc)g_free, NULL);
- g_queue_free(event_queue);
- g_cond_free(event_queue_not_empty);
- g_cond_free(event_queue_not_full);
- event_queue = NULL;
- g_mutex_unlock(event_lock);
- g_mutex_free(event_lock);
-}