fixed memory leaks caused by using a CVector instead of a CList

This commit is contained in:
Pavol Marko
2004-07-03 13:45:56 +00:00
parent 994e41d7cf
commit 67b13237d6
2 changed files with 15 additions and 17 deletions

View File

@@ -92,13 +92,13 @@ class CForward
CPluginMngr::CPlugin *pPlugin;
int func;
};
typedef CVector<AMXForward*> AMXForwardList;
typedef CVector<AMXForward> AMXForwardList;
AMXForwardList m_Funcs;
ForwardParam m_ParamTypes[FORWARD_MAX_PARAMS];
public:
CForward(const char *name, ForwardExecType et, int numParams, const ForwardParam * paramTypes);
CForward()
{ } // leaves everything unitialized
{ } // leaves everything unitialized'
cell execute(cell *params, ForwardPreparedArray *preparedArrays);
int getParamsNum() const
{