Commit 92d62e4b authored by Philip Withnall's avatar Philip Withnall Committed by Olivier Crête
Browse files

agent: Ensure the pending signal queue is cleared on dispose

parent e62d47d6
......@@ -3649,6 +3649,7 @@ static void
nice_agent_dispose (GObject *object)
GSList *i;
QueuedSignal *sig;
NiceAgent *agent = NICE_AGENT (object);
/* step: free resources for the binding discovery timers */
......@@ -3682,6 +3683,10 @@ nice_agent_dispose (GObject *object)
g_slist_free (agent->streams);
agent->streams = NULL;
while ((sig = g_queue_pop_head (&agent->pending_signals))) {
free_queued_signal (sig);
g_free (agent->stun_server_ip);
agent->stun_server_ip = NULL;
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