client: call unlink_streams in client finalize

Fixes #599027
This commit is contained in:
Luca Ognibene 2010-03-05 18:37:17 +01:00 committed by Wim Taymans
parent 83ed258684
commit e19c382bbb

View file

@ -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);