From 4db1280c5967a7ad4bb97e8607f95702455f53ac Mon Sep 17 00:00:00 2001 From: Nicholas Hastings Date: Sun, 12 Jul 2015 19:18:27 -0400 Subject: [PATCH] Add comment to note that pStk actually gets deleted. --- core/PlayerManager.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/PlayerManager.cpp b/core/PlayerManager.cpp index 381da0776..ea40a8c66 100644 --- a/core/PlayerManager.cpp +++ b/core/PlayerManager.cpp @@ -1265,6 +1265,8 @@ void PlayerManager::OnClientCommandKeyValues(edict_t *pEntity, KeyValues *pComma m_bInCCKVHook = false; HandleSecurity sec(g_pCoreIdent, g_pCoreIdent); + + // Deletes pStk handlesys->FreeHandle(hndl, &sec); if (res >= Pl_Handled) @@ -1308,6 +1310,8 @@ void PlayerManager::OnClientCommandKeyValues_Post(edict_t *pEntity, KeyValues *p m_bInCCKVHook = false; HandleSecurity sec(g_pCoreIdent, g_pCoreIdent); + + // Deletes pStk handlesys->FreeHandle(hndl, &sec); } #endif