[phodav] spice-webdavd: close connection stream when free client



commit 60238c754a10c6213d1de35a869159ce3dfdc0fc
Author: Marc-André Lureau <marcandre lureau gmail com>
Date:   Mon Feb 9 14:29:55 2015 +0100

    spice-webdavd: close connection stream when free client

 spice/spice-webdavd.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/spice/spice-webdavd.c b/spice/spice-webdavd.c
index 571e8b6..3eb11f4 100644
--- a/spice/spice-webdavd.c
+++ b/spice/spice-webdavd.c
@@ -252,6 +252,9 @@ add_client (GSocketConnection *client_connection)
 static void
 client_free (Client *c)
 {
+  g_debug ("Free client %p", c);
+
+  g_io_stream_close (G_IO_STREAM (c->client_connection), NULL, NULL);
   g_object_unref (c->client_connection);
   output_queue_unref (c->queue);
   g_free (c);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]