From 232227035c8d6a31eaaf193863cbadda949c08fd Mon Sep 17 00:00:00 2001
From: liuxiaolong <liuxiaolong@aiotlink.com>
Date: 星期二, 20 七月 2021 20:19:26 +0800
Subject: [PATCH] fix memory leak
---
box/center.h | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/box/center.h b/box/center.h
index c4aa1ac..8850db4 100644
--- a/box/center.h
+++ b/box/center.h
@@ -24,6 +24,8 @@
#include <memory>
class CenterTopicNode;
class TcpServer;
+class TcpProxy;
+class IoService;
class BHCenter
{
@@ -54,7 +56,10 @@
std::map<std::string, std::shared_ptr<ShmSocket>> sockets_;
std::unique_ptr<CenterTopicNode> topic_node_;
+
+ std::unique_ptr<IoService> io_service_;
std::unique_ptr<TcpServer> tcp_server_;
+ std::unique_ptr<TcpProxy> tcp_proxy_;
};
#endif // end of include guard: CENTER_TM9OUQTG
--
Gitblit v1.8.0