dtls: fix generated cert dtls agent leak
The generated certificate dtls agent was refed two times on the first call.
This commit is contained in:
parent
aa0dea09d6
commit
e5585b1bde
@ -601,10 +601,10 @@ get_agent_by_pem (const gchar * pem)
|
|||||||
} else {
|
} else {
|
||||||
GST_DEBUG_OBJECT (generated_cert_agent,
|
GST_DEBUG_OBJECT (generated_cert_agent,
|
||||||
"using agent with generated cert");
|
"using agent with generated cert");
|
||||||
|
g_object_ref (generated_cert_agent);
|
||||||
}
|
}
|
||||||
|
|
||||||
agent = generated_cert_agent;
|
agent = generated_cert_agent;
|
||||||
g_object_ref (agent);
|
|
||||||
} else {
|
} else {
|
||||||
G_LOCK (agent_table);
|
G_LOCK (agent_table);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user