From 2c5f0ea904846d2248223c5feb3c92275673e46f Mon Sep 17 00:00:00 2001 From: Martin Michelsen Date: Thu, 2 Mar 2023 22:16:08 -0800 Subject: [PATCH] fix client object memory leak --- src/Server.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Server.cc b/src/Server.cc index dfc83594..2ae92b6c 100644 --- a/src/Server.cc +++ b/src/Server.cc @@ -53,6 +53,7 @@ void Server::disconnect_client(shared_ptr c) { // callback after the current event. This will also call the client's // disconnect hooks (if any). this->clients_to_destroy.insert(move(c)); + this->enqueue_destroy_clients(); } void Server::enqueue_destroy_clients() {