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

Potential Keyvalues Memory Leak #27

Open
Spirrwell opened this issue Nov 4, 2016 · 1 comment
Open

Potential Keyvalues Memory Leak #27

Spirrwell opened this issue Nov 4, 2016 · 1 comment

Comments

@Spirrwell
Copy link

Hi.

In c_baseanimating.cpp, there's a function called DelayedInitModelEffects() that's defined at line 1263. This is base class code and I'm not sure what your handling is for that kind of code, though it looks like you use #ifdef GE_DLL. This is nothing huge, but there's a potential KeyValues leak in that function if it ends up returning early in a couple places such as around line 1300.

It's not a particularly big function so it should be easy to figure out. Should do modelKeyValues->deleteThis(); when it returns early.

Found this one day, so figured I'd pass it on. I'm actually interested in helping more, but I haven't played the game before to know what might be broken. Will someday though. Really love the use of CMake. I hate VPC.

@droidmonkey
Copy link
Member

Please link to the line in the code.

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

2 participants