From 9d627653179015b73f4f21c285b065a50e98a59e Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Thu, 15 Aug 2024 10:16:49 +0800 Subject: [PATCH] 1 --- f8/app.cc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/f8/app.cc b/f8/app.cc index 422041b..c72975e 100644 --- a/f8/app.cc +++ b/f8/app.cc @@ -62,6 +62,15 @@ namespace f8 void App::UnInit() { user_app_->UnInit(); + { + queue_.Fetch(); + list_head* work_list = queue_.GetWorkList(); + while (!list_empty(work_list)){ + MsgHdr* hdr = list_first_entry(work_list, MsgHdr, entry); + list_del_init(&hdr->entry); + MsgHdr::Destroy(hdr); + } + } f8::TGLog::Instance()->UnInit(); f8::HttpClientPool::Instance()->UnInit(); f8::Timer::Instance()->UnInit();