gst-libs/gst/rtsp/gstrtspconnection.c: Close control sockets. Fixes #503440.
authorPeter Kjellerstedt <pkj@axis.com>
Thu, 13 Dec 2007 15:54:00 +0000 (15:54 +0000)
committerWim Taymans <wim.taymans@gmail.com>
Thu, 13 Dec 2007 15:54:00 +0000 (15:54 +0000)
Original commit message from CVS:
Patch by: Peter Kjellerstedt  <pkj at axis com>
* gst-libs/gst/rtsp/gstrtspconnection.c:
(gst_rtsp_connection_free):
Close control sockets. Fixes #503440.

ChangeLog
common
gst-libs/gst/rtsp/gstrtspconnection.c

index 999b6ef..d876f83 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
 2007-12-13  Wim Taymans  <wim.taymans@collabora.co.uk>
 
+       Patch by: Peter Kjellerstedt  <pkj at axis com>
+
+       * gst-libs/gst/rtsp/gstrtspconnection.c:
+       (gst_rtsp_connection_free):
+       Close control sockets. Fixes #503440.
+
+2007-12-13  Wim Taymans  <wim.taymans@collabora.co.uk>
+
        * gst/playback/gstdecodebin2.c: (analyze_new_pad), (connect_pad):
        Expose the right pad in the right place with the right element.
 
diff --git a/common b/common
index fb7ab03..ea5f2cf 160000 (submodule)
--- a/common
+++ b/common
@@ -1 +1 @@
-Subproject commit fb7ab03319930496e922173d54f6dfccfff6f357
+Subproject commit ea5f2cfab1a164a5d285fe745343cbe0a476a904
index 1da824d..a11f29b 100644 (file)
@@ -1163,6 +1163,10 @@ gst_rtsp_connection_free (GstRTSPConnection * conn)
 
   g_return_val_if_fail (conn != NULL, GST_RTSP_EINVAL);
 
+  if (WRITE_SOCKET (conn) >= 0)
+    CLOSE_SOCKET (WRITE_SOCKET (conn));
+  if (READ_SOCKET (conn) >= 0)
+    CLOSE_SOCKET (READ_SOCKET (conn));
 #ifdef G_OS_WIN32
   WSACleanup ();
 #endif