Commit 804a4c09 authored by Olivier Crête's avatar Olivier Crête

component: Fix potential NULL deference

This was introduced recently and flagged by Coverity.
parent f36cf5b6
......@@ -197,6 +197,7 @@ nice_component_remove_socket (NiceAgent *agent, NiceComponent *cmp,
conn_check_prune_socket (agent, stream, cmp, candidate->sockptr);
nice_component_detach_socket (cmp, candidate->sockptr);
}
if (stream)
agent_remove_local_candidate (agent, stream, (NiceCandidate *) candidate);
nice_candidate_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