connection: close pending incoming FDs on shutdown
authorDavid Herrmann <dh.herrmann@googlemail.com>
Thu, 11 Oct 2012 21:37:47 +0000 (23:37 +0200)
committerKristian Høgsberg <krh@bitplanet.net>
Mon, 15 Oct 2012 20:16:24 +0000 (16:16 -0400)
Same problem as with outgoing FDs. We need to close these on shutdown,
otherwise we leak open file descriptors.

Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
src/connection.c

index 7cf645c..7c8a191 100644 (file)
@@ -190,6 +190,7 @@ void
 wl_connection_destroy(struct wl_connection *connection)
 {
        close_fds(&connection->fds_out, -1);
+       close_fds(&connection->fds_in, -1);
        close(connection->fd);
        free(connection);
 }