mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-02 21:48:55 +00:00
gst/rtsp/gstrtspsrc.c: Don't leak sdp message contents (fixes #496773).
Original commit message from CVS: * gst/rtsp/gstrtspsrc.c: (gst_rtspsrc_open): Don't leak sdp message contents (fixes #496773). * gst/udp/gstudpsink.c: (gst_udpsink_finalize): Don't leak URI string.
This commit is contained in:
parent
f691a70d69
commit
092cb8cd57
3 changed files with 11 additions and 0 deletions
|
@ -1,3 +1,11 @@
|
|||
2007-11-14 Tim-Philipp Müller <tim at centricular dot net>
|
||||
|
||||
* gst/rtsp/gstrtspsrc.c: (gst_rtspsrc_open):
|
||||
Don't leak sdp message contents (fixes #496773).
|
||||
|
||||
* gst/udp/gstudpsink.c: (gst_udpsink_finalize):
|
||||
Don't leak URI string.
|
||||
|
||||
2007-11-14 Tim-Philipp Müller <tim at centricular dot net>
|
||||
|
||||
Patch by: Julien Puydt <julien dot puydt at laposte net>
|
||||
|
|
|
@ -3914,6 +3914,7 @@ gst_rtspsrc_open (GstRTSPSrc * src)
|
|||
/* clean up any messages */
|
||||
gst_rtsp_message_unset (&request);
|
||||
gst_rtsp_message_unset (&response);
|
||||
gst_sdp_message_uninit (&sdp);
|
||||
|
||||
return TRUE;
|
||||
|
||||
|
@ -3978,6 +3979,7 @@ cleanup_error:
|
|||
GST_RTSP_STATE_UNLOCK (src);
|
||||
gst_rtsp_message_unset (&request);
|
||||
gst_rtsp_message_unset (&response);
|
||||
gst_sdp_message_uninit (&sdp);
|
||||
return FALSE;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -157,6 +157,7 @@ static void
|
|||
gst_udpsink_finalize (GstUDPSink * udpsink)
|
||||
{
|
||||
g_free (udpsink->host);
|
||||
g_free (udpsink->uri);
|
||||
|
||||
G_OBJECT_CLASS (parent_class)->finalize ((GObject *) udpsink);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue