[Pkg-telepathy-commits] [libnice] 162/265: agent: Ensure the pending signal queue is cleared on dispose
Simon McVittie
smcv at debian.org
Wed May 14 12:05:04 UTC 2014
This is an automated email from the git hooks/post-receive script.
smcv pushed a commit to branch debian
in repository libnice.
commit 92d62e4b139e3cae01e0b8c33b5149bb948823d2
Author: Philip Withnall <philip.withnall at collabora.co.uk>
Date: Wed Mar 5 10:45:00 2014 +0000
agent: Ensure the pending signal queue is cleared on dispose
---
agent/agent.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/agent/agent.c b/agent/agent.c
index 3c22959..d026bc5 100644
--- a/agent/agent.c
+++ b/agent/agent.c
@@ -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;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-telepathy/libnice.git
More information about the Pkg-telepathy-commits
mailing list