summaryrefslogtreecommitdiff
path: root/socket/socket.c
diff options
context:
space:
mode:
Diffstat (limited to 'socket/socket.c')
-rw-r--r--socket/socket.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/socket/socket.c b/socket/socket.c
index 684e88b..260a190 100644
--- a/socket/socket.c
+++ b/socket/socket.c
@@ -450,5 +450,6 @@ gboolean nice_socket_flush_send_queue_to_socket (GSocket *gsock,
void
nice_socket_free_send_queue (GQueue *send_queue)
{
- g_queue_free_full (send_queue, (GDestroyNotify) nice_socket_free_queued_send);
+ g_list_free_full (send_queue->head, (GDestroyNotify) nice_socket_free_queued_send);
+ g_queue_init (send_queue);
}