diff --git a/server/gameserver/app.cc b/server/gameserver/app.cc index a8cf15f..bf14802 100755 --- a/server/gameserver/app.cc +++ b/server/gameserver/app.cc @@ -255,14 +255,10 @@ void App::UnInit() FreeSocketMsgQueue(); FreeIMMsgQueue(); - delete im_msg_mutex_; - im_msg_mutex_ = nullptr; - delete msg_mutex_; - msg_mutex_ = nullptr; - delete loop_cond_; - loop_cond_ = nullptr; - delete loop_mutex_; - loop_mutex_ = nullptr; + A8_SAFE_DELETE(im_msg_mutex_); + A8_SAFE_DELETE(msg_mutex_); + A8_SAFE_DELETE(loop_cond_); + A8_SAFE_DELETE(loop_mutex_); } int App::Run()