/* If queue elements contain dynamically-allocated memory, you should either use g_queue_free_full() or free them manually first.  */
void g_queue_free(GQueue *queue)
/* If queue elements contain dynamically-allocated memory, you should either use g_queue_free_full() or free them manually first.  */
void g_queue_free(GQueue *queue)
{
  g_return_if_fail (queue != NULL);
  g_list_free (queue->head);
  g_slice_free (GQueue, queue);
}