[Pkg-telepathy-commits] [libnice] 210/265: No need to strdup foundation in new_selected_pair since we queue signal

Simon McVittie smcv at debian.org
Wed May 14 12:05:09 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 d1d0db0cf44e62e0909d6a5c79ab75fc036cf59d
Author: Youness Alaoui <youness.alaoui at collabora.co.uk>
Date:   Mon Apr 7 21:30:49 2014 -0400

    No need to strdup foundation in new_selected_pair since we queue signal
---
 agent/agent.c | 10 +---------
 1 file changed, 1 insertion(+), 9 deletions(-)

diff --git a/agent/agent.c b/agent/agent.c
index d994479..b0f5755 100644
--- a/agent/agent.c
+++ b/agent/agent.c
@@ -1615,8 +1615,6 @@ void agent_signal_new_selected_pair (NiceAgent *agent, guint stream_id, guint co
 {
   Component *component;
   Stream *stream;
-  gchar *lf_copy;
-  gchar *rf_copy;
 
   if (!agent_find_component (agent, stream_id, component_id,
           &stream, &component))
@@ -1638,14 +1636,8 @@ void agent_signal_new_selected_pair (NiceAgent *agent, guint stream_id, guint co
     return;
   }
 
-  lf_copy = g_strdup (local_foundation);
-  rf_copy = g_strdup (remote_foundation);
-
   agent_queue_signal (agent, signals[SIGNAL_NEW_SELECTED_PAIR],
-      stream_id, component_id, lf_copy, rf_copy);
-
-  g_free (lf_copy);
-  g_free (rf_copy);
+      stream_id, component_id, local_foundation, remote_foundation);
 }
 
 void agent_signal_new_candidate (NiceAgent *agent, NiceCandidate *candidate)

-- 
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