From aa0e4e121e6e93197e55584295d5962133039011 Mon Sep 17 00:00:00 2001 From: Pavol Marko Date: Mon, 5 Sep 2005 19:56:40 +0000 Subject: [PATCH] Now properly cleaning up pending client cvar queries in the queue on client disconnect --- amxmodx/CMisc.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/amxmodx/CMisc.cpp b/amxmodx/CMisc.cpp index 97765d96..de44d00f 100755 --- a/amxmodx/CMisc.cpp +++ b/amxmodx/CMisc.cpp @@ -61,7 +61,12 @@ void CPlayer::Disconnect() { authorized = false; while (!cvarQueryQueue.empty()) + { + ClientCvarQuery_Info *pQuery = cvarQueryQueue.front(); + unregisterSPForward(pQuery->resultFwd); + delete pQuery; cvarQueryQueue.pop(); + } bot = 0; }