From 3943697dcf79b59c5aff0f83d3977b25eae2fbf1 Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Tue, 19 Jun 2012 17:34:22 +0000 Subject: [PATCH] Fixed a possible crash when restarting / stopping the server. git-svn-id: http://mc-server.googlecode.com/svn/trunk@632 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/cServer.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/source/cServer.cpp b/source/cServer.cpp index 65691e0cf..15f19eeed 100644 --- a/source/cServer.cpp +++ b/source/cServer.cpp @@ -607,6 +607,7 @@ void cServer::Shutdown() cCSLock Lock(m_CSClients); for( ClientList::iterator itr = m_Clients.begin(); itr != m_Clients.end(); ++itr ) { + (*itr)->Destroy(); delete *itr; } m_Clients.clear();