timmay3141
Programmer
I need to use a global vector in a program, and I was wondering - will the vector automatically de-allocate the memory when the program exits? I ask because I'm using OpenGL and GLUT, so after the window is closed, you don't get a chance to empty the vector in main() (because glutMainLoop() never returns). I could still empty the vector using the atexit() function, but I was wondering if this is really necessary or if it will happen automatically.