Commit 77dcc2e0 authored by Marcus Lundblad's avatar Marcus Lundblad Committed by Youness Alaoui

What was I thinking... this should ofcourse be freed like a SendData, not a...

What was I thinking... this should ofcourse be freed like a SendData, not a SendRequest... copy paste... :)
parent 20275fe7
...@@ -148,21 +148,16 @@ priv_nice_address_hash (gconstpointer data) ...@@ -148,21 +148,16 @@ priv_nice_address_hash (gconstpointer data)
static void static void
priv_send_data_queue_destroy (gpointer data) priv_send_data_queue_destroy (gpointer data)
{ {
GQueue *send_requests = (GQueue *) data; GQueue *send_queue = (GQueue *) data;
GList *i; GList *i;
for (i = g_queue_peek_head_link (send_requests); i; i = i->next) { for (i = g_queue_peek_head_link (send_queue); i; i = i->next) {
SendRequest *r = i->data; SendData *data = (SendData *) i->data;
g_source_destroy (r->source);
g_source_unref (r->source);
r->source = NULL;
stun_agent_forget_transaction (&r->priv->agent, r->id);
g_slice_free (SendRequest, r);
g_free (data->data);
g_slice_free (SendData, data);
} }
g_queue_free (send_requests); g_queue_free (send_queue);
} }
NiceSocket * NiceSocket *
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment