summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOgnyan Tonchev <ognyan@axis.com>2013-09-24 16:26:37 +0200
committerSebastian Dröge <slomo@circular-chaos.org>2013-09-24 18:35:14 +0200
commit02ac18b6992b94f824e71a82d6ddaa238f04ffdb (patch)
tree31bff9f683aea62a1e0649302cf9763c4804e78e
parentf1d074ac3997f1de62be0448dd7104fcae7623c7 (diff)
rtspconnection: Unset input/output_stream after freeing the GIOStream
watch->input_stream and watch->output_stream are owned by the GIOStream and should be unset after freeing the stream. https://bugzilla.gnome.org/show_bug.cgi?id=708689
-rw-r--r--gst-libs/gst/rtsp/gstrtspconnection.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gst-libs/gst/rtsp/gstrtspconnection.c b/gst-libs/gst/rtsp/gstrtspconnection.c
index 1335756cf..3a76d1bdf 100644
--- a/gst-libs/gst/rtsp/gstrtspconnection.c
+++ b/gst-libs/gst/rtsp/gstrtspconnection.c
@@ -2037,6 +2037,10 @@ gst_rtsp_connection_close (GstRTSPConnection * conn)
conn->socket1 = NULL;
}
+ /* these were owned by the stream */
+ conn->input_stream = NULL;
+ conn->output_stream = NULL;
+
g_free (conn->remote_ip);
conn->remote_ip = NULL;
g_free (conn->local_ip);