From 52d067bea0ae4c2612e8277dae881b431fea8a44 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Tue, 3 Sep 2019 16:01:48 +0800 Subject: [PATCH] 1 --- server/gameserver/app.cc | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) 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()