Summary: The patch fixes the issue where agent reference count is not properly decremented causing instance leak in cases where component's socket is reset remotely.
Reviewers: #libnice, pwithnall
Projects: #libnice
Reviewed By: #libnice, pwithnall
Subscribers: pwithnall, maximgolunov
Differential Revision: https://phabricator.freedesktop.org/D236
out:
g_object_unref (agent);
-
}
static void
component_detach_socket (component, socket_source->socket);
agent_unlock ();
+ g_object_unref (agent);
return G_SOURCE_REMOVE;
}
out:
g_object_unref (agent);
+
agent_unlock_and_emit (agent);
return G_SOURCE_REMOVE;
}