Quote Originally Posted by caduel View Post
You allocate materials as a pointer to std::vector, but free it as an array with delete[].
Change that to delete and you should be ok.

HTH
You lost me. I don't allocate anything as a vector. Could you point to the file and line that that happens according to you?