discovery: Remove never used and leaked msn_turn_* fields in CandidateDiscovery
authorOlivier Crête <olivier.crete@collabora.com>
Tue, 22 Apr 2014 20:47:36 +0000 (16:47 -0400)
committerOlivier Crête <olivier.crete@collabora.com>
Fri, 25 Apr 2014 01:04:31 +0000 (21:04 -0400)
agent/discovery.c
agent/discovery.h

index 516e2cc..7511d3d 100644 (file)
@@ -76,8 +76,7 @@ void discovery_free_item (gpointer data, gpointer user_data)
 {
   CandidateDiscovery *cand = data;
   g_assert (user_data == NULL);
-  g_free (cand->msn_turn_username);
-  g_free (cand->msn_turn_password);
+
   g_slice_free (CandidateDiscovery, cand);
 }
 
@@ -888,10 +887,8 @@ static gboolean priv_discovery_tick_unlocked (gpointer pointer)
 
           if (turn_compat == STUN_USAGE_TURN_COMPATIBILITY_MSN ||
               turn_compat == STUN_USAGE_TURN_COMPATIBILITY_OC2007) {
-            g_free (cand->msn_turn_username);
-            g_free (cand->msn_turn_password);
-            cand->msn_turn_username = username;
-            cand->msn_turn_password = password;
+            g_free (username);
+            g_free (password);
           }
         }
 
index 973702e..5a12a8c 100644 (file)
@@ -57,8 +57,6 @@ typedef struct
   Component *component;
   TurnServer *turn;
   StunAgent stun_agent;
-  uint8_t *msn_turn_username;
-  uint8_t *msn_turn_password;
   StunTimer timer;
   uint8_t stun_buffer[STUN_MAX_MESSAGE_SIZE];
   StunMessage stun_message;