{
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);
}
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);
}
}
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;