mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
client: don't leak transports
This commit is contained in:
parent
3f49c2d8f4
commit
853128e1c7
1 changed files with 3 additions and 0 deletions
|
@ -1012,6 +1012,7 @@ not_found:
|
||||||
{
|
{
|
||||||
send_generic_response (client, GST_RTSP_STS_NOT_FOUND, state);
|
send_generic_response (client, GST_RTSP_STS_NOT_FOUND, state);
|
||||||
g_object_unref (session);
|
g_object_unref (session);
|
||||||
|
gst_rtsp_transport_free (ct);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
no_stream:
|
no_stream:
|
||||||
|
@ -1035,11 +1036,13 @@ unsupported_transports:
|
||||||
no_pool:
|
no_pool:
|
||||||
{
|
{
|
||||||
send_generic_response (client, GST_RTSP_STS_SERVICE_UNAVAILABLE, state);
|
send_generic_response (client, GST_RTSP_STS_SERVICE_UNAVAILABLE, state);
|
||||||
|
gst_rtsp_transport_free (ct);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
service_unavailable:
|
service_unavailable:
|
||||||
{
|
{
|
||||||
send_generic_response (client, GST_RTSP_STS_SERVICE_UNAVAILABLE, state);
|
send_generic_response (client, GST_RTSP_STS_SERVICE_UNAVAILABLE, state);
|
||||||
|
gst_rtsp_transport_free (ct);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue