Commit e98392a6 authored by Dafydd Harries's avatar Dafydd Harries

close socket when candidate is freed

darcs-hash:20070202091200-c9803-13a01de3ed6cabb7eed9a025228908cff9778318.gz
parent 94228f4d
......@@ -21,6 +21,11 @@ nice_candidate_new (NiceCandidateType type)
void
nice_candidate_free (NiceCandidate *candidate)
{
/* better way of checking if socket is allocated? */
if (candidate->sock.addr.sin_addr.s_addr != 0)
nice_udp_socket_close (&(candidate->sock));
g_slice_free (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