agent: fix agent reference count
authorFabrice Bellet <fabrice@bellet.info>
Sun, 30 Jun 2019 19:28:25 +0000 (21:28 +0200)
committerOlivier CrĂȘte <olivier.crete@collabora.com>
Thu, 4 Jul 2019 21:03:43 +0000 (17:03 -0400)
agent/agent.c

index b232690..d383e8d 100644 (file)
@@ -2186,6 +2186,7 @@ _tcp_sock_is_writable (NiceSocket *sock, gpointer user_data)
   if (component->selected_pair.local == NULL ||
       !nice_socket_is_based_on (component->selected_pair.local->sockptr, sock)) {
     agent_unlock (agent);
+    g_object_unref (agent);
     return;
   }