From e8dbdb920b09102c80f5ff2aa25bbbb9d3d0813f Mon Sep 17 00:00:00 2001 From: Mladen Lazic Date: Fri, 19 Apr 2019 10:13:58 +0200 Subject: [PATCH] [libsoup] Disconnect the signal before clearing the connection object --- ...ect-signal-before-clearing-connection-object.patch | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 package/libsoup/0004-soup-socket-disconnect-signal-before-clearing-connection-object.patch diff --git a/package/libsoup/0004-soup-socket-disconnect-signal-before-clearing-connection-object.patch b/package/libsoup/0004-soup-socket-disconnect-signal-before-clearing-connection-object.patch new file mode 100644 index 000000000000..4e7d900a6b39 --- /dev/null +++ b/package/libsoup/0004-soup-socket-disconnect-signal-before-clearing-connection-object.patch @@ -0,0 +1,11 @@ +diff --git a/libsoup/soup-socket.c b/libsoup/soup-socket.c +index 16f29c8..a4e0fd9 100644 +--- a/libsoup/soup-socket.c ++++ b/libsoup/soup-socket.c +@@ -188,6 +188,7 @@ disconnect_internal (SoupSocket *sock, gboolean close) + g_clear_object (&priv->gsock); + if (priv->conn && close) { + g_io_stream_close (priv->conn, NULL, NULL); ++ g_signal_handlers_disconnect_by_data (priv->conn, sock); + g_clear_object (&priv->conn); + }