diff --git a/ChangeLog b/ChangeLog index 999b6efe57..d876f83e6a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2007-12-13 Wim Taymans + + Patch by: Peter Kjellerstedt + + * gst-libs/gst/rtsp/gstrtspconnection.c: + (gst_rtsp_connection_free): + Close control sockets. Fixes #503440. + 2007-12-13 Wim Taymans * gst/playback/gstdecodebin2.c: (analyze_new_pad), (connect_pad): diff --git a/common b/common index fb7ab03319..ea5f2cfab1 160000 --- a/common +++ b/common @@ -1 +1 @@ -Subproject commit fb7ab03319930496e922173d54f6dfccfff6f357 +Subproject commit ea5f2cfab1a164a5d285fe745343cbe0a476a904 diff --git a/gst-libs/gst/rtsp/gstrtspconnection.c b/gst-libs/gst/rtsp/gstrtspconnection.c index 1da824d810..a11f29bf4d 100644 --- a/gst-libs/gst/rtsp/gstrtspconnection.c +++ b/gst-libs/gst/rtsp/gstrtspconnection.c @@ -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