优化内存泄露问题

This commit is contained in:
azw 2023-04-27 08:57:13 +00:00
parent c15cb12a75
commit ceb5df1323
2 changed files with 6 additions and 1 deletions

View File

@ -19,6 +19,11 @@ namespace f8
struct NetMsgHandler
{
virtual ~NetMsgHandler()
{
}
int handlerid;
const ::google::protobuf::Message* prototype = nullptr;
CUSTOM_PARSER custom_parser = nullptr;

View File

@ -71,7 +71,7 @@ namespace f8
delete impl_->save_thread;
impl_->save_thread = nullptr;
impl_->msg_mutex.lock();
if (impl_->work_node) {
if (!impl_->work_node) {
impl_->work_node = impl_->top_node;
impl_->top_node = nullptr;
impl_->bot_node = nullptr;