mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +00:00
rtspsrc: Fix two leaks
* gst_event_new_stream_start() does not take ownership of the stream_id * the pipeline_request_id string that is created was not being freed
This commit is contained in:
parent
3a17f52ca3
commit
9a7dd45e57
1 changed files with 6 additions and 0 deletions
|
@ -2543,6 +2543,7 @@ gst_rtspsrc_handle_src_sink_event (GstPad * pad, GstObject * parent,
|
||||||
|
|
||||||
gst_event_unref (event);
|
gst_event_unref (event);
|
||||||
event = gst_event_new_stream_start (stream_id);
|
event = gst_event_new_stream_start (stream_id);
|
||||||
|
g_free (stream_id);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
|
@ -6764,6 +6765,9 @@ gst_rtspsrc_setup_streams_start (GstRTSPSrc * src, gboolean async)
|
||||||
|
|
||||||
gst_rtsp_ext_list_stream_select (src->extensions, url);
|
gst_rtsp_ext_list_stream_select (src->extensions, url);
|
||||||
|
|
||||||
|
if (pipelined_request_id)
|
||||||
|
g_free (pipelined_request_id);
|
||||||
|
|
||||||
/* if there is nothing to activate, error out */
|
/* if there is nothing to activate, error out */
|
||||||
if (!src->need_activate)
|
if (!src->need_activate)
|
||||||
goto nothing_to_activate;
|
goto nothing_to_activate;
|
||||||
|
@ -6840,6 +6844,8 @@ nothing_to_activate:
|
||||||
}
|
}
|
||||||
cleanup_error:
|
cleanup_error:
|
||||||
{
|
{
|
||||||
|
if (pipelined_request_id)
|
||||||
|
g_free (pipelined_request_id);
|
||||||
gst_rtsp_message_unset (&request);
|
gst_rtsp_message_unset (&request);
|
||||||
gst_rtsp_message_unset (&response);
|
gst_rtsp_message_unset (&response);
|
||||||
return res;
|
return res;
|
||||||
|
|
Loading…
Reference in a new issue