Revert "dtls: fix generated cert dtls agent leak"

This reverts commit e5585b1bde
This commit is contained in:
Sebastian Dröge 2019-07-26 06:35:53 +00:00
parent 694f91da88
commit 060e72e370

View file

@ -601,10 +601,10 @@ get_agent_by_pem (const gchar * pem)
} else {
GST_DEBUG_OBJECT (generated_cert_agent,
"using agent with generated cert");
g_object_ref (generated_cert_agent);
}
agent = generated_cert_agent;
g_object_ref (agent);
} else {
G_LOCK (agent_table);