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

memory leak at opt_vector_splitting.cpp #93

Open
crazii opened this issue Mar 22, 2015 · 1 comment
Open

memory leak at opt_vector_splitting.cpp #93

crazii opened this issue Mar 22, 2015 · 1 comment

Comments

@crazii
Copy link

crazii commented Mar 22, 2015

src\glsl\opt_vector_splitting.cpp : 274
loop_state* ls = analyze_loop_variables(instructions);

object "ls" is created and never deleted

@billhollings
Copy link

Thanks for posting this!!

I came across this leak as well, but wasn't finding it easy to track down. I was about to give up when I came across your post!

For others who are interested, this leak can be fixed by adding:

delete loopstate;

before the return statement in the ir_vector_reference_visitor::get_split_list() function.

I can make a pull request out of this if it would be helpful, but the change is trivial.

Thanks...

...Bill

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