Commit e98392a6 authored by Dafydd Harries's avatar Dafydd Harries
Browse files

close socket when candidate is freed

parent 94228f4d
......@@ -21,6 +21,11 @@ nice_candidate_new (NiceCandidateType type)
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