From 041b62db8b73a00091b507f73d434a60263a7fb0 Mon Sep 17 00:00:00 2001 From: David Schleef Date: Thu, 11 Aug 2011 18:07:08 -0700 Subject: [PATCH] rtsp-server: hold on to reference while using object --- gst/rtsp-server/rtsp-server.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gst/rtsp-server/rtsp-server.c b/gst/rtsp-server/rtsp-server.c index ac239d1bbf..4477d8d23b 100644 --- a/gst/rtsp-server/rtsp-server.c +++ b/gst/rtsp-server/rtsp-server.c @@ -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); }