Fixed bug where memory allocated for FP_ARRAY parameters was not released.

This commit is contained in:
Pavol Marko 2004-09-19 09:32:52 +00:00
parent a6a03bf51e
commit 1c6636b106

View File

@ -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<char>(*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<char>(*tmp++ & 0xFF);
}
amx_Release(m_Amx, realParams[i]);
}
amx_Release(m_Amx, realParams[i]);
}
}