mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-03 13:02:29 +00:00
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:
parent
3baaf0b0df
commit
4782d08bdc
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue