GameVoting icon indicating copy to clipboard operation
GameVoting copied to clipboard

Memmory leak

Open NullifidianSF opened this issue 3 years ago • 1 comments

Old array https://github.com/neatek/GameVoting/blob/d3502fcf4e0984bb4b331ec066bbd17b10bb587e/addons/sourcemod/scripting/gamevoting/reasons.sp#L21 not deleted before opening a new one. I'm not an expert, but adding "delete gReasons;" on line #4 if(gReasons != null) { gReasons.Clear(); delete gReasons; } fixed it.

NullifidianSF avatar Mar 08 '21 00:03 NullifidianSF