[linux] {bug} Valgrind shows memory leaks

It would be really great if the memory leaks that valgrind found in linux could be fixed, It’s really a pain to go use the xcode inspector to find leaks.

Thanks!

We will try our best.
You can also help us to fix it.
Thank you.

Hi,

I’ve noticed two things, one is a fault from glfw that is doing weird thing with the memory and valgrind reports invalids reads and write after glfwOpenWindow.
The other one is the use of exit() on a C++ program, what it does is that all the living classes have not a chance to call their destructors and so valgrind suggests some form of leaking.

I’ll try to investigate a little further, thanks!