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();