From 1c6636b106fc404810344c9a68f0862009aff26a Mon Sep 17 00:00:00 2001 From: Pavol Marko Date: Sun, 19 Sep 2004 09:32:52 +0000 Subject: [PATCH] Fixed bug where memory allocated for FP_ARRAY parameters was not released. --- amxmodx/CForward.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/amxmodx/CForward.cpp b/amxmodx/CForward.cpp index b693bbd1..6b204e96 100755 --- a/amxmodx/CForward.cpp +++ b/amxmodx/CForward.cpp @@ -141,8 +141,8 @@ cell CForward::execute(cell *params, ForwardPreparedArray *preparedArrays) for (unsigned int j = 0; j < preparedArrays[params[i]].size; ++j) *data++ = static_cast(*tmp++ & 0xFF); } - amx_Release(iter->pPlugin->getAMX(), realParams[i]); } + amx_Release(iter->pPlugin->getAMX(), realParams[i]); } } @@ -275,8 +275,8 @@ cell CSPForward::execute(cell *params, ForwardPreparedArray *preparedArrays) for (unsigned int j = 0; j < preparedArrays[params[i]].size; ++j) *data++ = static_cast(*tmp++ & 0xFF); } - amx_Release(m_Amx, realParams[i]); } + amx_Release(m_Amx, realParams[i]); } }