Commit fae5482e authored by Youness Alaoui's avatar Youness Alaoui

Do not destroy the object until we're done using it..

parent 603e42ac
......@@ -936,9 +936,6 @@ nice_turn_socket_parse_recv (NiceSocket *sock, NiceSocket **from_sock,
&peer_len);
nice_address_set_from_sockaddr (&to, &peer);
g_free (priv->current_create_permission_msg);
priv->current_create_permission_msg = NULL;
/* unathorized => resend with realm and nonce */
if (stun_message_get_class (&msg) == STUN_ERROR) {
int code = -1;
......@@ -990,6 +987,8 @@ nice_turn_socket_parse_recv (NiceSocket *sock, NiceSocket **from_sock,
/* send enqued data */
socket_dequeue_all_data (priv, &to);
}
g_free (priv->current_create_permission_msg);
priv->current_create_permission_msg = NULL;
}
}
......
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