From 4782d08bdc88f523076a0f97e8ebd62cb2e65839 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Tue, 27 Nov 2012 11:17:45 +0100 Subject: [PATCH] client: only free connection when there is one It's possible that the client doesn't have a connection when we try to free it. --- gst/rtsp-server/rtsp-client.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gst/rtsp-server/rtsp-client.c b/gst/rtsp-server/rtsp-client.c index f382282..94c5d4c 100644 --- a/gst/rtsp-server/rtsp-client.c +++ b/gst/rtsp-server/rtsp-client.c @@ -224,7 +224,8 @@ gst_rtsp_client_finalize (GObject * obj) client_cleanup_sessions (client); - gst_rtsp_connection_free (client->connection); + if (client->connection) + gst_rtsp_connection_free (client->connection); if (client->session_pool) g_object_unref (client->session_pool); if (client->mount_points) -- 2.34.1