summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuca Ognibene <luca.ognibene at gmail.com>2010-03-05 18:37:17 +0100
committerWim Taymans <wim.taymans@collabora.co.uk>2010-03-05 18:37:17 +0100
commite19c382bbb648068cd46bef1d39723f971aa8d53 (patch)
tree75b066236b80039095f87260557af250048dc0dc
parent83ed2586841bb912ad1d6ba6cdf0da10b6c43f18 (diff)
client: call unlink_streams in client finalize
Fixes #599027
-rw-r--r--gst/rtsp-server/rtsp-client.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gst/rtsp-server/rtsp-client.c b/gst/rtsp-server/rtsp-client.c
index 67f0037..b0e10e3 100644
--- a/gst/rtsp-server/rtsp-client.c
+++ b/gst/rtsp-server/rtsp-client.c
@@ -46,6 +46,8 @@ static void gst_rtsp_client_finalize (GObject * obj);
static void client_session_finalized (GstRTSPClient * client,
GstRTSPSession * session);
+static void unlink_streams (GstRTSPClient * client);
+
G_DEFINE_TYPE (GstRTSPClient, gst_rtsp_client, G_TYPE_OBJECT);
static void
@@ -99,6 +101,8 @@ gst_rtsp_client_finalize (GObject * obj)
(GWeakNotify) client_session_finalized, client);
}
+ unlink_streams (client);
+
g_list_free (client->sessions);
gst_rtsp_connection_free (client->connection);