Commit d1d0db0c authored by Youness Alaoui's avatar Youness Alaoui Committed by Olivier Crête

No need to strdup foundation in new_selected_pair since we queue signal

parent b0321074
...@@ -1615,8 +1615,6 @@ void agent_signal_new_selected_pair (NiceAgent *agent, guint stream_id, guint co ...@@ -1615,8 +1615,6 @@ void agent_signal_new_selected_pair (NiceAgent *agent, guint stream_id, guint co
{ {
Component *component; Component *component;
Stream *stream; Stream *stream;
gchar *lf_copy;
gchar *rf_copy;
if (!agent_find_component (agent, stream_id, component_id, if (!agent_find_component (agent, stream_id, component_id,
&stream, &component)) &stream, &component))
...@@ -1638,14 +1636,8 @@ void agent_signal_new_selected_pair (NiceAgent *agent, guint stream_id, guint co ...@@ -1638,14 +1636,8 @@ void agent_signal_new_selected_pair (NiceAgent *agent, guint stream_id, guint co
return; return;
} }
lf_copy = g_strdup (local_foundation);
rf_copy = g_strdup (remote_foundation);
agent_queue_signal (agent, signals[SIGNAL_NEW_SELECTED_PAIR], agent_queue_signal (agent, signals[SIGNAL_NEW_SELECTED_PAIR],
stream_id, component_id, lf_copy, rf_copy); stream_id, component_id, local_foundation, remote_foundation);
g_free (lf_copy);
g_free (rf_copy);
} }
void agent_signal_new_candidate (NiceAgent *agent, NiceCandidate *candidate) void agent_signal_new_candidate (NiceAgent *agent, NiceCandidate *candidate)
......
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