Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

l4d_stats存在一个Handle Leak #115

Open
blueblur0730 opened this issue Aug 17, 2024 · 4 comments
Open

l4d_stats存在一个Handle Leak #115

blueblur0730 opened this issue Aug 17, 2024 · 4 comments

Comments

@blueblur0730
Copy link

L4DStatsConf = LoadGameConfigFile("l4d_stats");

L4DStatsConf 获取完gamedata并完成SDKCall准备后应该delete释放内存

@Paimon-Kawaii
Copy link

L4DStatsConf = LoadGameConfigFile("l4d_stats");

L4DStatsConf 获取完gamedata并完成SDKCall准备后应该delete释放内存

这个建议去上游

@fantasylidong
Copy link
Owner

他这个是我的插件,不过我想等blur的中文翻译合并了再一起处理了

@Paimon-Kawaii
Copy link

他这个是我的插件,不过我想等blur的中文翻译合并了再一起处理了

原来是这样,我以为是zmod里的统计插件,没细看

@blueblur0730
Copy link
Author

MapTimingSurvivors = CreateTrie();
MapTimingInfected = CreateTrie();
FriendlyFireDamageTrie = CreateTrie();
PlayerRankVoteTrie = CreateTrie();

这四个StringMap也是创建后从未删除, 考虑到Anne可能有用Confogl来回切换模式卸载加载插件的情况, 建议是在 OnPluginEnd里面删除一下

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants