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.
This commit is contained in:
Wim Taymans 2012-11-27 11:17:45 +01:00
parent 3baaf0b0df
commit 4782d08bdc

View file

@ -224,6 +224,7 @@ gst_rtsp_client_finalize (GObject * obj)
client_cleanup_sessions (client);
if (client->connection)
gst_rtsp_connection_free (client->connection);
if (client->session_pool)
g_object_unref (client->session_pool);