[Fix] Fix a memory leak in Setting.cpp.
[Fix] Fix a memory leak in PlayerSelectionRule.cpp.
Merge pull request #5990 from ace20022/mem_leaks_Helix

[Fix] Mem leaks helix