diff --git a/f8/app.cc b/f8/app.cc index f50f1ce..46e9069 100644 --- a/f8/app.cc +++ b/f8/app.cc @@ -247,6 +247,7 @@ namespace f8 MsgHdr* hdr = list_first_entry(work_list, MsgHdr, entry); list_del_init(&hdr->entry); user_app_->DispatchSocketMsg(hdr); + --msgnode_size_; MsgHdr::Destroy(hdr); } } @@ -281,10 +282,4 @@ namespace f8 NotifyLoopCond(); } - void App::FreeSocketMsg(MsgHdr* hdr) - { - --msgnode_size_; - free(hdr); - } - } diff --git a/f8/app.h b/f8/app.h index d6fd304..1172fa0 100644 --- a/f8/app.h +++ b/f8/app.h @@ -57,7 +57,6 @@ namespace f8 const char *msgbody, int bodylen, int tag); - void FreeSocketMsg(MsgHdr* hdr); char** GetArgv() { return argv_; } int GetArgc() { return argc_; } long long GetMsgNodeSize() { return msgnode_size_; }