Re: memory leak. -
17-07-2004
FreeVisibilityTable should be freed in ServerDeactivate().
and the Meta_Detach() isn't get called if we exit the game normally and not use metamod command to unload the plugin. The correct place to free it is in DllMain() (windows) and _fini() (linux)
also why not use "char message[64];" ? That's exactly same as the malloc thing and we don't need to care about freeing the memory
|