mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-12 18:35:35 +00:00
rtsp-server: hold on to reference while using object
This commit is contained in:
parent
aa128813fe
commit
041b62db8b
1 changed files with 2 additions and 0 deletions
|
@ -706,11 +706,13 @@ unmanage_client (GstRTSPClient * client, GstRTSPServer * server)
|
|||
{
|
||||
GST_DEBUG_OBJECT (server, "unmanage client %p", client);
|
||||
|
||||
g_object_ref (server);
|
||||
gst_rtsp_client_set_server (client, NULL);
|
||||
|
||||
GST_RTSP_SERVER_LOCK (server);
|
||||
server->clients = g_list_remove (server->clients, client);
|
||||
GST_RTSP_SERVER_UNLOCK (server);
|
||||
g_object_unref (server);
|
||||
|
||||
g_object_unref (client);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue